Announcements
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 .
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.
You mentioned a problem with syntax...
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
Please give us more information about your problem.
André Arnaud de Cal...
294,017
Super User 2025 Season 1
Martin Dráb
232,852
Most Valuable Professional
nmaenpaa
101,158
Moderator