Skip to main content

Notifications

Announcements

No record found.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans