Support Article
Not resetting CustomFilter in report browser
Summary
User 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 Messages
Not 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 Cause
The 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.
Resolution
Change 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 January 3, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.