Hi ,
This is my Controller class code with two Report Design .
public class GD_CustTransController extends SrsReportRunController
{
public static void main(Args _args)
{
GD_CustTransController controller = new GD_CustTransController();
controller.parmReportName(ssrsReportStr(GD_CustTrans,Report_Group));
controller.parmArgs(_args);
controller.startOperation();
}
protected void preRunModifyContract()
{
GD_CustTransContract contract = this.parmReportContract().parmRdpContract() as GD_CustTransContract;
if(contract.parmCustGroup() != '')
{
this.parmReportContract().parmReportName(ssrsReportStr(GD_CustTrans,Report_Group));
}
else
{
this.parmReportContract().parmReportName(ssrsReportStr(GD_CustTrans,Report_Account));
}
}
}
But I dont see my controller class is working properly with the respective Report as per the if condition.
It works only based on the default report which I have mentioned in output menu items property. Can someone Explain why it always selects the (Report_Account) Report design .
Do I need to make any changes in my controller class in order to call my Another report ?
