Adding an interface to the SysOperation framework
We can do a lot by just decorating the contract data methods but, sometimes, we need more control. This recipe steps through adding more control to the user interface created by the SysOperation
framework.
Getting ready
We just need an existing SysOperation process class that we wish to add a customized interface to.
Note
If you are following on from the previous recipe, remove the SysOperationControlVisibility
attribute from the VehicleId
data method.
How to do it...
To add the user interface, please follow these steps:
- Create a class named
ConWHSVehicleGroupChangeUIBuilder
. Addextends
SysOperationAutomaticUIBuilder
to the class declaration. - 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; }
- We will now need to bind...