How to do it...

To create the Create form, follow these steps:

  1. We need to make some changes to the ConVMSVehicleServiceTableForm class in order to pass state information between the main form and the create form. Open the class and add the following:
// global variablesConVMSVehicleServiceTable serviceTableCreated;// new methodspublic ConVMSVehicleServiceTable ParmServiceTableCreated(    ConVMSVehicleServiceTable _serviceTableCreated =      serviceTableCreated){    serviceTableCreated = _serviceTableCreated;    return serviceTableCreated;}public ConVMSVehicleServiceTable CurrentRecord(){    return conVMSVehicleServiceTable_ds.cursor();}
  1. Create a new form, suffixing the detail's form name with Create, for example, ConVMSVehicleServiceTableCreate.
  2. Drag ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.