Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
Writing data-event handlers
Data-event handlers deal with delegates exposed on every table. These delegates are listed under the Events node.
These events do not fire if the associated method (for example, insert) is overridden on the table and super() is not called.
How event handler methods are organized is up to the developer, but they do need to be placed logically so that others will find them easily. A good naming convention (from experience) is to use the following convention: TableName_Project_DataHandler, so in our case it would be SalesConfirmHeaderTmp_ConVMSSalesReports_DataHandler.
It would be tempting to name it ConVMSSalesReportsDataHandlers, and stick them all in one class, but when we eventually have many projects with data-events, ...
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