Implementing SysOperationFramework in Ax2012 - Introducing controller class
Views (792)
Hi,
Their are several advantages with a controller class(that should extend SysOperationServiceController class). In this post, would like to provide details about controller class that is useful for execution(based on CG_DataService and CG_DataContract classes). Execution entry point would be from the controller class.
Class: CG_DataController and Method: classDeclaration
class CG_DataController extends SysOperationServiceController
{
}
Class: CG_DataController and Method: main
public static void main(Args _args)
{
CG_DataController dataController;
dataController = new CG_DataController(classStr(CG_DataService),
methodStr(CG_DataService, startOperation),
SysOperationExecutionMode::Synchronous);
dataController.parmDialogCaption("Items");
dataController.startOperation();
}
Create a menuItem of type Action for CG_DataContoller class and provide following parameters:
Regards,
Chaitanya Golla

Like
Report
*This post is locked for comments