Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
There's more...
We should add number sequence handling logic to the ConVMSVehicleTable form.
We don't need a form handler class in this case; we can add the methods directly to the ConVMSVehicleTable form. Declare the NumberSeqFormHandler class global to the form and write the initialize method also at the form level. Call the method after the super() call in init. In each data source method we changed in this recipe, just call numberSeqFormHandler(element, ConVMSVehicleTable_DS).<method> directly.
The CustTable form is a good example of this.
You can also create a type class for this. This isn't usually required for Main tables as the business logic on these tables is not as complicated.
Feel free to challenge yourself on this. To save time, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access