Dynamics AX Blog - sysoperation-framework - Posts from 2015
These posts are machine-translated.
Currently, only posts from »2015« are displayed
SysOperation: Open form with specific record after processingImagine the following scenario: You have to create or update a record using a clas, which extends Sysoperation-Framework. After this database operation you have to open a particular form, which allows the user to modify the just created/modified record. For such tasks i like to use the aferoperation()-method from the Controller-Class. By using the operationReturnvalue of the Service-Class within this method it is possible to process the record. |
AX 2012: SysOperation-Framework: Use your own form as a dialogIn have already described how you can integrate your own form as a dialog within the SysOperation framework. Meanwhile, I've encountered a much simpler version:
protected FormName templateForm() { FormName ret; ret = formStr(CopyOfSysOperationTemplateForm); return ret; } |
|
|
|
|
|
|

If you need to run a function - implemented by using the SysOperation-Framework - by code, the following job can show you how you can do this.
static void runSysOperationThroughCode(Args _args) { TutorialSysOperationServiceController controller; TutorialSysOperationDataContract dataContract; SysOperationStartResult sysOperationStartResult; controller = TutorialSysOperationServiceController::newFromArgs(new Args()); dataContract = controller.getDataContractObject('_dataContract'); controller.parmExecutionMode(SysOperationExecutionMode::Synchronous); dataContract.parmFilenameSave(@"c: empmyFile.txt"); dataContract.parmCustAccount('US-006'); sysOperationStartResult = controller.startOperation(); }