To create the table handler class, follow these steps:
- Create a new class named ConVMSVehicleServiceTableType.
- We will construct the instance from ConVMSVehicleServiceTable and will, therefore, store this as a global variable on the class. Add this as follows:
class ConVMSVehicleServiceTableType{ ConVMSVehicleServiceTable serviceTable;}
- In order to construct the class, we will need to be able to set the value of serviceTable using an accessor method (a way to get and set internal variables), which is called a Parm method in SCM:
public ConVMSVehicleServiceTable ParmConVMSVehicleServiceTable( ConVMSVehicleServiceTable _serviceTable = serviceTable){ serviceTable = _serviceTable; return serviceTable;}
- Override the new ...