Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

How to change the report name and design according to pass base enum param

Posted on by 175

i create report with multi designs and define  enum parameters on this report

what am need when i chose on of the value in enum the system run report and specific design:

i already use SRSReportRunController class by the following code:

public static void main(Args args)
{

CustSalesRepController controller;

controller = new CustSalesRepController ();

controller.parmArgs(args);

controller.parmReportName(ssrsReportStr( CustSalesCompanyRep, CustSalesPD02 ));

   controller.startOperation();
}


Categories:
  • István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: How to change the report name and design according to pass base enum param

    Hi,

    Nice :) Would you please mark useful answers as verified?

    Thanks,

    István

  • Wael Shazly Profile Picture
    Wael Shazly 175 on at
    RE: How to change the report name and design according to pass base enum param

    Special Thanks it's Working

  • Wael Shazly Profile Picture
    Wael Shazly 175 on at
    RE: How to change the report name and design according to pass base enum param

    Thanks For All

  • Verified answer
    István Orosz Profile Picture
    István Orosz 2,137 on at
    RE: How to change the report name and design according to pass base enum param

    Hi,

    Please check the CustAgingReportController.preRunModifyContract() controller class method, and how it calls getReportName() method to change the SSRS report design.

    Regards,

    István

  • Wael Shazly Profile Picture
    Wael Shazly 175 on at
    RE: How to change the report name and design according to pass base enum param

    i do it as follow:

    public static void main(Args args)
    {

    CustSalesRepController controller;
    controller = new CustSalesRepController ();

    controller.parmArgs(args);

    if (Args.parmenum() == GroupbyRep::None)
    {
    info(enum2str(Args.parmenum()));
    controller.parmReportName(ssrsReportStr(CustSalesCompanyRep, CustSalesPD01));
    controller.startOperation();
    }
    else

    {
    controller.parmReportName(ssrsReportStr(CustSalesCompanyRep, CustSalesPD02));
    }

    }

    But if i change the parameter in the report dialog the first same design appear

    4061.Capture.PNG

    I need when i change the param in report , design also change according to pass param 

  • Suggested answer
    Ajit Profile Picture
    Ajit 8,755 on at
    RE: How to change the report name and design according to pass base enum param

    You can specify report design at Menu Item (Output) level.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans