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

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    Ajit Profile Picture
    8,788 on at

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

  • Wael Shazly Profile Picture
    175 on at

    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 

  • Verified answer
    István Orosz Profile Picture
    2,137 on at

    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
    175 on at

    Thanks For All

  • Wael Shazly Profile Picture
    175 on at

    Special Thanks it's Working

  • István Orosz Profile Picture
    2,137 on at

    Hi,

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

    Thanks,

    István

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans