Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

run ssrs report with two design

(0) ShareShare
ReportReport
Posted on by

I have rdp class that has two temp table, in process in rdp class i want to run specific function based on design in menu item and another function based on another design.

how to do this??

Regards,

*This post is locked for comments

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: run ssrs report with two design

    Hi Mostafa,

    There are several ways to accomplish this. I would recommend to introduce a parameter on the datacontract class(as Martin suggested) and mark the parameter to yes/no based on the report name in the controller class

    (by overriding the getFromDialog() method and include following code).  In the DP class access these value from the contract class and invoke your function accordingly.

    public void getFromDialog()

    {

       Contractclass statementContract; //Intialize contract class

       super();

       statementContract = this.getReportContract().parmRdpContract() as Contractclass;

       if (this.parmReportName() == #ReportName)

       {

           statementContract.parmvalue(); // parameter on the contract class

       }

    }

    Hope this helps you.

    Thanks,

    Chaitanya Golla

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: run ssrs report with two design

    Hi,

    1.First Define the contract parameters

    2.retrieve in RDP class

    3.write condition in DP class like

    if(Function1)

    {

    this.insertintotmptable1();

    SrsReportRunController  controller;

      controller = new SrsReportRunController();

      controller.parmReportName(ssrsReportStr(Report, Design1));

      controller.startOperation();

    }

    else if(Function2)

    {

    this.insertintotmptable2();

    SrsReportRunController  controller;

      controller = new SrsReportRunController();

      controller.parmReportName(ssrsReportStr(Report, Design2));

      controller.startOperation();

    }

    If this is not your solution

    Please check this example

    Create controller class

    Ex :- RetailLabelController.ParmreportName()

    Regards.

  • Suggested answer
    Martin Dráb Profile Picture
    233,019 Most Valuable Professional on at
    RE: run ssrs report with two design

    Put the parameter to the data contract class when calling the report. The RDP class with later get it it the parameter of processReport().

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,281 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,019 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans