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 :
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 .

I have the same question (0)
  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Please give us more information about your problem.

  • Wasam Gohar Profile Picture
    50 on at

    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
    237,880 Most Valuable Professional on at

    You mentioned a problem with syntax...

  • Suggested answer
    greengrimms Profile Picture
    1,400 on at

    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.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans