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

Announcements

News and Announcements icon
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
    239,688 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
    239,688 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 681 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 551 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 471

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans