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.
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));
}
}
1 comments:
Write commentsI really enjoyed reading this post, I always appreciate topics like this being discussed to us. Private Tutor in Vero Beach Thanks for sharing.
ReplyEmoticonEmoticon