Change SSRS report design based on parameter selection in dialog


Here is a solution to select the design at the run time based on dialog field values in AX 2012 SSRS reports.  Hope this will help you.



We can write our login inside preRunModifyContract method.

This method is commonly use for Modifying the query. Setting the contract values that are hidden from the user on the dialog.subscribing to rendering Complete event.



public void preRunModifyContract()
{
    contract = this.parmReportContract().parmRdpContract() as dev_ItemwiseStockRegisterContract;
    if(enum2str(contract.Parm_IsSummary())=="Yes")
    {
this.parmReportContract().parmReportName(ssrsReportStr(dev_ItemWiseStockRegisterRpt, dev_ItemWiseStockRegisterRpt_Summary));
    }
    else
    {
this.parmReportContract().parmReportName(ssrsReportStr(dev_ItemWiseStockRegisterRpt, dev_ItemWiseStockRegisterRpt_Design));
    }  
}

Previous
Next Post »

1 comments:

Write comments
17 January 2022 at 11:50 delete

I really enjoyed reading this post, I always appreciate topics like this being discussed to us. Private Tutor in Vero Beach Thanks for sharing.

Reply
avatar