O'Reilly logo

Microsoft Dynamics AX 2012 Services by Kenny Saelen, Klaas Deforche

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

Custom controllers

In the earlier example, we used the SysOperationServiceController class on our menu item to run the services. This is the base controller, but you can create your own when you have the need. In this part, we will first take a look at some of the scenarios in which custom controllers can be used, after which we will create a custom controller.

Usage scenarios

What follows are two of the most common scenarios in which you would use a class that extends SysOperationServiceController . The first is using a controller to initialize a data contract, the second is a scenario in which you override methods of dialog fields.

Initializing the data contract

The controller can be used to initialize the data in the data contract. This is one ...

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