Hi,
I am trying to execute multiple designs of the same report at the same time. The controller class reads like:
class MyReportController extends SrsReportRunController
public static client void main(Args _args)
{
MyReportController controller = new MyReportController();
ReportDesign labelSize;
;
labelSize = _args.parmEnum();
if(labelSize == ReportDesign::SmallBox)
controller.parmReportName(#ReportName_S);
else if(labelSize == ReportDesign::Normal)
controller.parmReportName(#ReportName_M);
controller.parmData(_args.record());
controller.parmRecId(_args.record().RecId);
//controller.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Screen);
controller.parmExecutionMode(SysOperationExecutionMode::ReliableAsynchronous);
controller.parmShowDialog(false);
controller.startOperation();
}
and the method calling the menuitem of the controller class is:
ReportDesignEnum ReportDesign;
;
args.record(MyTable_1);
ReportDesign = ReportDesign::SmallBox;
args.parmEnumType(enumnum(ReportDesign));
new MenuFunction(menuItemOutputStr(MyController), MenuItemType::Output).run(args);
args.record(MyTable_1);
ReportDesign = ReportDesign::Normal;
args.parmEnumType(enumnum(ReportDesign));
new MenuFunction(menuItemOutputStr(MyController), MenuItemType::Output).run(args);
However, no report design is seen on the screen.
The reports execute one after the other if I comment the execution-mode.
What could I be doing wrong?