How to do it...

To add the user interface, please follow these steps:

  1. Create a class named ConVMSVehicleGroupChangeUIBuilder. Add extends SysOperationAutomaticUIBuilder to the class declaration.
  2. We need two dialog fields that we will later bind to the data contract; the completed class declaration should look like this:
class ConVMSVehicleGroupChangeUIBuilder extends SysOperationAutomaticUIBuilder{    DialogField vehicleIdField;    DialogField vehGroupIdField;}
  1. We will now need to bind the contract's data member methods to the dialog fields. This is done in the postBuild method. Override the postBuild method with the following piece of code:
public void postBuild(){    ConVMSVehicleGroupChangeContract contract;    super(); contract = this.dataContractObject(); ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.