Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Calling same menu item from Controller Class

(0) ShareShare
ReportReport
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
    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
    232,852 Most Valuable Professional on at
    RE: Calling same menu item from Controller Class

    You mentioned a problem with syntax...

  • Wasam Gohar Profile Picture
    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
    232,852 Most Valuable Professional on at
    RE: Calling same menu item from Controller Class

    Please give us more information about your problem.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,017 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans