Hi All,
I have a Typical Issue i.e we are in Upgradation From NAV 3.7 to NAV 2015 and my issue is i want to write Trigger Code in Role Center page but in nav 2015 Trigger does not allow any Code and Card pages so there is only option to write a Codeunit so for that one i created as below
In NAV 3.7:-
Action is Phy. Inventory Journal and in OnPush trigger code is
ItemJnlManagement.SetForm(50038);
ItemJnlManagement.TemplateSelection(2,FALSE);
In NAV2015:-
I created a Codeunit and Call this Codeunit in RunObject property. Like this Actions i have a lot off , And for each actions i want to create Codeunits is it Compulsary or any Other solution is there.
Can any one suggest me please..........................
can see this above Image that is NAV3.7 RoleCenter it's Like page only that's why it allows trigger code but in nav 2015 we have seperate rolecenters our role centers doesn't allow trigger code.
*This post is locked for comments
Yeah, that is a strange oversight from Microsofts side. Your solution is the right one, but you might have a cheaper alternative to codeunit by using pages - open a page, and do what you need to on OpenPage code trigger - and then close the "fake" page again right away.
We do the same thing in cases where we have one list page - but multiple card pages depending on data values.
For every Action i need to create a Codeunit is it necessary can any one tell me please..........
Sry Image is
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156