
Hi All,
I have a requirement to conditionally run a different report(PurchPurchaseOrder report) design based on a flag on the PurchTable.
I've added the new design in the Print Management settings to include the new report design.
And i've modified the code in the controller class to conditionally run a design based on a flag - see code below
if(flag)
{
controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, Report));
}
else
{
controller.initArgs(_args, ssrsReportStr(PurchPurchaseOrder, Report_TEST));
}
However when i run the report, it's always running the original design. Hope my explanation is clear.
Any help/suggestion will be highly appreciated.
thanks
*This post is locked for comments
I have the same question (0)Hi,
You may want to try post event handler for method called outputreport() for your controller class. If post event handler do not work, try Chain of command. Please have a look at one of my blog-post from AX2012.
community.dynamics.com/.../running-a-different-design-of-a-report-part-1
I can understand that things have went to extensions from overlaying but I am optimistic about the solution.