Recently i got a requirement like based on input parameters change report Design In SSRS.
We can get through Controller class.
For this i wrote code like this see below code snippers
public static void main(Args _args)
{
CLD_POController controller = new CLD_POController();
controller.parmReportName(ssrsReportStr(CLD_PO_DetailsReport,WithDetails)); //Default design
controller.parmArgs(_args);
controller.startOperation();
}
protected void preRunModifyContract()
{
Cld_POReportContract dataContract = this.getDataContractObject() as Cld_POReportContract; //contract class
if (dataContract.parmNoYes()) //if my check box Yes
{
this.parmReportContract().parmReportName(ssrsReportStr(CLD_PO_DetailsReport,
WithDetails)); //design 1
}
else //if my check box NO
{
this.parmReportContract().parmReportName(ssrsReportStr(CLD_PO_DetailsReport,
WithoutDetails)); //design 2
}
//super();
}
No comments:
Post a Comment