March 2020
Intermediate to advanced
534 pages
14h 15m
English
Sometimes, it isn't possible to filter the target form, which means we must write some code on the target form to handle this.
The issue for the form is that we don't want to write a switch statement for each caller. A solution would be to write an interface that forms a code contract between the caller and the form.
After doing this, we can create an interface with the following code:
interface ConVMSVehicleGroupFilterableI{ public ConVMSVehicleGroupId VehicleGroupId () {}}
On the workspace, change the class declaration to the following:
public class ConVMSVehicleWorkspace extends FormRun implements SysIFilterProvider, ConVMSVehicleGroupFilterableI
Then, add the following method:
public ConVMSVehicleGroupId VehicleGroupId() ...
Read now
Unlock full access