Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
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();
}


*This post is locked for comments

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans