O'Reilly logo

Mastering Microsoft Dynamics AX 2012 R3 Programming by Mat Fergusson, Simon Buxton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the SysOperation framework execution modes

We can also use the controller programmatically, without the dialog. For this, we need to interact with the contract and decide how it will be executed.

One of the benefits of this framework is that we can execute the code asynchronously or add it to a batch queue. To demonstrate this, we need a test class so that we can call the controller programmatically. To do this, create a new class called ConFMSSysOpTest, then create a main method, and enter the following lines of code:

public static void main(Args _args) { ConFMSVehicleGroupChangeController controller; ConFMSVehicleGroupChangeContract dataContract; ConFMSVehicleId vehicleId; ConFMSVehicleGroupId groupId; ConFMSVehicleTable firstVehicle; ConFMSVehicleGroup ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required