How to do it...

To add the user interface, please follow these steps:

  1. Create a class named ConWHSVehicleGroupChangeUIBuilder. Add extendsSysOperationAutomaticUIBuilder to the class declaration.
  2. We need two dialog fields that we will later bind to the data contract; the completed classDeclaration should look like this:
class ConWHSVehicleGroupChangeUIBuilder        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() {     ConWHSVehicleGroupChangeContract contract;     super();  contract = this.dataContractObject(); ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.