OnActivate() trigger function does not run

Hello-

I recently upgraded to NAV 2009 from 5.0. I used the transformation tool to convert my .fob form into an .xml file for the new Role Tailored UI screen. Everything works with my CAL code, but my OnActivate triggers don’t seem to fire anymore. The form still fires this trigger though. Here is my code:

NoOnActivate()

//----- Begin doc-link integration
MESSAGE(‘Here on No.’);

dlLastVisitedField := ‘No.’;
//----- End doc-link integration

It is for the Purchasing Invoice screen 51 and it should fire when you focus on the No. field. It currently does not set my dlLastVistedField to the string above. Any suggestions on to why this does not work anymore? I got it to work one day but don’t know how and currently does not work now.

thank you so much

I also noticed that on form design view you can right click on the textbox and do CAL. It lists all the events erm triggers for that control…

Documentation()

No. - OnActivate()
//----- Begin doc-link integration
dlLastVisitedField := ‘No.’;
//----- End doc-link integration

No. - OnDeactivate()

No. - OnFormat(VAR Text : Text[1024]:wink:

No. - OnBeforeInput()

No. - OnInputChange()

No. - OnAfterInput(VAR Text : Text[1024]:wink:

No. - OnValidate()

No. - OnAfterValidate()

No. - OnLookup(VAR Text : Text[1024]:wink: : Boolean

No. - OnDrillDown()

No. - OnAssistEdit()

On my page design view I can only see 5 triggers?

No. - OnValidate()

No. - OnLookup(VAR Text : Text[1024]:wink: : Boolean

No. - OnDrillDown()

No. - OnAssistEdit()

No. - OnControlAddIn(Index : Integer;Data : Text[1024])

Does this mean they do not offer OnActivate anymore?

Hi there,

I’m sorry to tell you that the onActivate trigger is no longer supported in the RoleTailored client.

Take a look at http://msdn.microsoft.com/en-us/library/ee414200.aspx for more details of the supported triggers for pages.

There is a whitepaper that tells you about design considerations and best practices for using the RoleTailored client, I think this is available on PartnerSource. It’s quite old but it gives suggestions of what to do to recreate the old action in the new client.

I think the URL to the whitepaper is https://mbs.microsoft.com/downloads/customer/Nav/whitepapers/WhatsNew_DevelopingSolutions_NAV.pdf or https://mbs.microsoft.com/downloads/partner/Nav/whitepapers/NAV5_0_Implementations_Recommendations.pdf either way, you should probably check out the documents in the Partner Resource Kit for Microsoft Dynamics NAV 2009.

Obviously I have no idea what you are trying to do here, but maybe you could use the new client add-in control to acheive something similar to what you are trying to do. Freddy K’s blog is a good source of info on creating client add-ins. http://blogs.msdn.com/freddyk/

Cheers,

Dave.

Thank you so much Gaspode, I appreciate your response. [H]

But to let you know what I am trying to do is simple:

Open page, Purchasing Invoice click in No. field have OnActivate() fire… and in that trigger all i do is set a local string variable to a dummy value.

thanks though, I will take a look into your suggestions!