web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to Call Actions In NAV 2015 Role Center pages?

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at

    Sry Image is

    gh.png

  • Verified answer
    Community Member Profile Picture
    on at

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

  • Suggested answer
    Erik Hougaard Profile Picture
    177 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans