Not resetting CustomFilter in report browser
SummaryUser has configured two Report Definitions for the same class and used custom filters option.
If user opens the reports randomly, the custom filter is not refreshing when the second report is loaded.
Error MessagesNot applicable
Steps to Reproduce
- Create two report in same class.
- Use custom filter for the both report.
- Create two shortcuts for calling the report.
- Launch report browser.
- Open first report from report browser.
- Select some filter criteria.
- Click on apply filter to load the data.
- Close the report.
- Open second report.
- For second report, the filtrate data will load with the pre-selecting filter criteria.
Root CauseThe issue is because in both the reports the custom Filter page specified is the same and of the same class.
So once when a report is launched and then close the browser window the Filter page is not removed from the "Reports" thread.
As a result when the second is launched the Filter page already exists and the new report is taking up the same page and filters get applied automatically.
ResolutionChange the Custom Filter page in any of the reports.
This is a local change and the design has changed from Pega 7.1.9 where a new thread is created for every report that gets opened and the respective thread gets closed whenever the report is closed.Note:
The above change works fine when different reports are opened but when the same report is opened again as the page exists in clipboard report gets loaded with previous filter values.
To resolve this add "executeactivity" section in the custom filter section and pass activity as parameter to the included section.
In the activity remove the customfilter page specified in the report.
Published December 22, 2016 - Updated January 3, 2017