March 2020
Intermediate to advanced
534 pages
14h 15m
English
Reports are added to print management using PrintMgmtReportFormatPopulator. This has all the base code to add report formats. There is a protected method that has no code, addDocuments(). This seems odd as it isn't a delegate, and appears to be unused. This is because this is designed to be overridden using Chain of Command, which we will discuss later in this chapter.
Chain of Command allows us to augment a class and also wrap methods with our code; you can see this in the PrintMgmtReportFormatPopulatorAppSuite_Extension class. It has a method called addDocuments, but has no attribute to link it to the class it is augmenting. The code is worth looking at:
protected void addDocuments(){ // Purchasing ...Read now
Unlock full access