Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Calling same menu item from Controller Class

Posted on by 50

HI Dynamics Community,

                                      I have one query I have 2 reports design and have Two menu items of same type . I want to call  it from same controller class Using if condition 

but facing difficulty in syntax .

  • Suggested answer
    greengrimms Profile Picture
    greengrimms 1,400 on at
    RE: Calling same menu item from Controller Class

    Hi Wasam,

    Basically, what you want is to call the Report designs directly from the controller class, like this:

    if(someCondition)
    {
        this.parmReportName(ssrsReportStr(ReportName, ReportDesign1));
    }
    else
    {
        this.parmReportName(ssrsReportStr(ReportName, ReportDesign2));
    }

    You can add it on the outputReport() method on your controller class.

  • Martin Dráb Profile Picture
    Martin Dráb 225,526 Super User on at
    RE: Calling same menu item from Controller Class

    You mentioned a problem with syntax...

  • Wasam Gohar Profile Picture
    Wasam Gohar 50 on at
    RE: Calling same menu item from Controller Class

    hi martin ,

    I have two design and have make one controller class for both design.

    have make two different output menu items for both i want to add condition on my controller class that when user click output menu item of 1 design open and for second as same

  • Martin Dráb Profile Picture
    Martin Dráb 225,526 Super User on at
    RE: Calling same menu item from Controller Class

    Please give us more information about your problem.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans