May 2017
Intermediate to advanced
442 pages
11h 55m
English
The example in this recipe simply demonstrates the framework, but the example is not particularly useful. To do so, it would be better to call the process from the vehicle form and default the parameters to the current vehicles.
To do this, we will need to fetch the constructed contract and update it with the record set by the caller from the Args object.
The following code does this:
public static void main(Args _args) { ConWHSVehicleGroupChangeController controller; ConWHSVehicleTable vehicle; switch (_args.dataset()) { case tableNum(ConWHSVehicleTable): vehicle = _args.record(); break; } if(vehicle.RecId == 0) { //Active buffer required. throw error ("@SYS25821"); } controller = new ConWHSVehicleGroupChangeController( ...Read now
Unlock full access