Print event does not show correct harness
After upgrading from PRPC 6 to Pega 7.1.9, when you click the Print icon on a service item, an image of the work history is staged for printing rather than the expected work object.
Steps to Reproduce
- Log in as the customer support representative (CSR).
- Click an available service item from the worklist.
- Click the Print icon.
- Observe that the system shows the work history instead of the main work object.
The custom code that was migrated from PRPC 6 was not compatible with the Pe4ga-provided Pega 7 code. In PRPC 6, the Print icon called the Work-.PrintWork activity with a parameter called PrintHarness. However, after the upgrade to Pega 7, the system uses the Pega-provided Print OnClick event. The Pega 7 Print OnClick event does not take any parameters.
If you want to use the same harness in Pega 7 that was used in your PRPC 6 application, do not call the Print OnClick event.
Instead, call the Work-.PrintWork activity directly and pass the older harness in for the PrintHarness parameter.
Published April 22, 2017 - Updated January 16, 2018