March 2020
Intermediate to advanced
534 pages
14h 15m
English
Since we aren't using a special create form to create new vehicles, SCM will just add a record using the current form view. If the form is in the Grid view, it will just add a new line to the grid. This isn't great as it won't usually have all the required fields when creating a new record. So, we should tell the form to change to the details view when a record is created.
To do this, right-click on the method for the main table (ConVMSVehicleTable, in this case) and choose Override | Create.
Write the following code:
public void create(boolean _append = false){ element.viewOptionHelper().setViewOption(FormViewOption::Details); super(_append);}
This should always be done when we are not using a specialized form to create new ...
Read now
Unlock full access