To create an extension class, follow these steps:
- Create a new class called SalesConfirmDP_ConVMSSalesReports_Extension. It must end with the extension, should start with the class name, and have a unique project name.
- Change the class declaration so that it reads as follows:
[ExtensionOf(classStr(SalesConfirmDP))]public final class SalesConfirmDP_ConVMSSalesReports_Extension{}
- Press F12 on SalesConfirmDP, so we can see which methods we need to hook into it. Then look for the initializeSalesOrderConfirmationHeader method. This method is suitable because its purpose is to copy data from the CustConfirmJour table to a new instance of the reporting dataset table.
- Copy the method declaration, and paste it into our class, as ...