Support Article

Not resetting CustomFilter in report browser



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

  1.  Create two report in same class.
  2.  Use custom filter for the both report.
  3.  Create two shortcuts for calling the report.
  4.  Launch report browser.
  5.  Open first report from report browser.
  6.  Select some filter criteria.
  7.  Click on apply filter to load the data.
  8.  Close the report.
  9.  Open second report.
  10.  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.



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.


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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.