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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Report Design change when calling from different menu item

(0) ShareShare
ReportReport
Posted on by

Dear Experts,

I have 2 menu item call to same report but different design .

But when i open the menuitem property "LinkedPermissionObjectChild" set to "PrecisionDesign_NEW", It always point to "PrecisionDesign" but not "PrecisionDesign_NEW".

Then in the controller class i found: 

controller.parmReportName(ssrsReportStr(ReportName, PrecisionDesign));

in the class, how to i know which menu item is calling from ?

i don't want to make much changes in the class because its customize report from other developer.

Thanks in advance :)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Hariharans87 Profile Picture
    3 on at

    If you are using controller class, you need to build the logic in the controller class.

    To identify which menu item is called, you can pass the parameter like EnumParameter to the controller class.

    Based on the menuitem, you can change the report name in the controller class.

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Newbie1245,

    Hariharan S is right. LinkedPermissionObjectChild property is connected to report security but not to design.

    You need to add your logic into the main() method to look at args.menuitemname(). Based on it you can change controller.parmReportName() or you can directly take it from menuitem, however you need to change your code anyway.

  • Community Member Profile Picture
    on at

    Thanks and appreciate a lot for yours answer!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans