March 2020
Intermediate to advanced
534 pages
14h 15m
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 like this:
public static void main(Args _args){ ConVMSVehicleTable vehicle; switch (_args.dataset()) { case tableNum(ConVMSVehicleTable): vehicle = _args.record(); break; } ConVMSVehicleGroupChangeController controller; controller = new ConVMSVehicleGroupChangeController( classStr(ConVMSVehicleGroupChange), methodStr(ConVMSVehicleGroupChange,Run), SysOperationExecutionMode::Synchronous); ...Read now
Unlock full access