web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Implementing SysOperationFramework in Ax2012 - Introducing controller class

Chaitanya Golla Profile Picture Chaitanya Golla 17,225

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:

BOF_2D00_Controller.png

Regards,

Chaitanya Golla

Comments

*This post is locked for comments