Answers for "controller class in ax 2012"

0

controller class in ax 2012

public SysOperationStartResult startOperation()
 
{
 
    // get the report contract. This will initialize it as well.
 
this.parmReportContract();
 
// call hook to change the contract before prompt is called.
 
this.prePromptModifyContract();
 
// maintain a unique id for each report run execution instance.
 
reportRunId = newGuid();
 
return super();
 
}
Posted by: Guest on July-15-2021
0

controller class in ax 2012

public void run()
 
{
 
InventValueReportController controller = new InventValueReportController();
 
controller.parmReportName(inventValueReportContract.parmReportName());
 
controller.parmReportContract().parmReportCaption("@SYS323601");
 
controller.parmDialogCaption("@SYS323601");
 
if (conLen(inventValueReportContract.parmSRSPrintSettings()) > 0)
 
{
 
controller.parmReportContract().parmRdpContract(inventValueReportContract);
 
controller.parmReportContract().parmPrintSettings(new SRSPrintDestinationSettings(inventValueReportContract.parmSRSPrintSettings()));
 
}
 
// Do not show the dialog in the report viewer
 
controller.parmShowDialog(false);
 
controller.runReport();
 
}
Posted by: Guest on July-15-2021
0

controller class in ax 2012

public static void main(Args _args)
{
    InventValueReportController controller = InventValueReportController::construct();
    InventValueReportContract inventValueReportContract = InventValueReportContract::construct();
 
    controller.parmReportName(inventValueReportContract.parmReportName());
    controller.parmDialogCaption("@SYS323601");
    controller.startOperation();
}
Posted by: Guest on July-15-2021
0

controller class in ax 2012

public SysOperationStartResult startOperation()
 
{
 
if (this.prompt())
 
this.run();
 
return startResult;
 
}
Posted by: Guest on July-15-2021
0

controller class in ax 2012

inventValueReportPrint.run();
Posted by: Guest on July-15-2021

Browse Popular Code Answers by Language