March 2020
Intermediate to advanced
534 pages
14h 15m
English
When we created new records, the vehicle type field reverted to Not selected. This is because the insert method used the table type to determine the vehicle type field, which is correct yet unhelpful in this scenario.
First, we need to add a method to get the InstanceRelationType (the table ID of the table instance) from the vehicle type, open the code for the ConVMSVehicleTableType class, and add the following method:
public RefTableId GetInstanceRelationFromType( ConVMSVehicleType _vehicleType){ RefTableId instanceType = tableNum(ConVMSVehicleTable); switch (vehicleTable.InstanceRelationType) { case ConVMSVehicleType::Truck: instanceType = tableNum(ConVMSVehicleTableTruck); break; case ConVMSVehicleType::Bike: ...Read now
Unlock full access