Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to Call Actions In NAV 2015 Role Center pages?

Posted on by Microsoft Employee

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

  • Suggested answer
    Erik Hougaard Profile Picture
    Erik Hougaard 177 on at
    RE: How to Call Actions In NAV 2015 Role Center pages?

    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.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Call Actions In NAV 2015 Role Center pages?

    For every Action i need to create a Codeunit is it necessary can any one tell me please..........

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Call Actions In NAV 2015 Role Center pages?

    Sry Image is

    gh.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans