Reports Sharing Filters At Runtime
  • 27 Jul 2022
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Reports Sharing Filters At Runtime

  • Dark
    Light

Article summary

Overview

This example will show how to use the Filter Runtime Behavior in a Report when several Reports are shown on one page and sharing one Request Value to affect all Reports on the Page. All Filters that need to share the same Value need to have the same name to accomplish this task. Additionally, it should be one Parent Report Filter where the user will type the Request Value. Other Reports should be child Reports to Get Value for the Filter from Parent Report.

Example

First, create two Reports. One Report will be the Parent Report, and the other will be a Child Report.


Create the Parent Report

  1. Create a Report. 
  2. In the Report Designer, within the Data Sources column, select the Add link to add Accounts as the Data Source to the Report.
  3. Add Email Address and Created On Date as the Data Fields.
  4. Add Email Address Contains Filter from Filters > Add > Field Filters > Email Address.
  5. Select the Filter that was just added to the Report and locate its Settings
  6. Rename the filter "EmailAddress". This is going to be the common name for all Filters that will use the same Value
  7. Under Runtime Behavior, select Runtime Editable in the drop-down menu.
    Show All Data When Filter Value Is Empty
    The check box below the value text box in the image above determines what will happen if the filter returns no results. Unchecked, it will return no results. If checked, it will show all data.


  8.  Select the Email Address Data Field.
  9. Expand the Settings, set Send Data As Filter Change Source as true, then type "EmailAddress".
  10. Save and close the Parent Report.

Creating the Child Report

  1. Create a Report; in the Report Designer, under Data Sources, select Add. Choose Folder Data Source.
  2. Add Entity Name and Created By as the Data Fields. 
  3. Under Filters add Entity Name Contains Filter.
  4. Navigate to the Filter Settings and rename it to "EmailAddress". 
  5. In the Runtime Behavior dropdown, select the Get Value From Other Reports option as this is the Child Report that will use the Value from its Parent Report. 
  6. Save and close the Report.

Debug

Add the two reports to a page/dashboard.

  1. Select the filter icon on the Parent Report. Type a desirable value into the Parent Report's Email Address Textbox. Select APPLY.
  2. As expected, it affects both Reports.

Was this article helpful?