To create a data-event handler, follow these steps:
- Create a new SalesConfirmHeaderTmp_ConVMSSalesReports_DataHandler class.
- Open the table design for the table in question; in our case, double-click on the SalesConfirmHeaderTmp.ConVMSSalesReports table extension.
- Expand Events and locate onInserting.
- Right-click on the Event and choose the Copy event handler method. This will create a code snippet, and place it in the paste buffer.
- Open the SalesConfirmHeaderTmp_ConVMSSalesReports_DataHandler class, and paste in the code snippet generated in step 4 into the class body, ...