Child Report Values Dependent on Parent Report Row Selection
  • 02 Nov 2022
  • 2 Minutes to read
  • Dark
    Light

Child Report Values Dependent on Parent Report Row Selection

  • Dark
    Light

Article Summary

Overview

A Page with multiple Reports can be configured to send data based on the row selection of a parent Report as a filter to a child Report. This means that if the user selects a line item on the parent Report, specified data reflecting the line item will show in the Child Report. Both Reports must be configured to send/receive this filter. This example requires familiarity with creating a Page/Dashboard and configuring a Report; please visit the Creating a Page/Dashboard or Creating a Report article for more information.


Example

This example creates two reports and then displays them on a Page. The first Report uses Accounts as the Data Source. The second Report populates a list of groups associated with an account based on the line item selected in the first Report. 

  1. In a Designer Project, select CREATE FORM from the top Action Bar. 
  2. Select the Page/Dashboard tab on the left side of the Create Form window. 
  3. Choose the 2x2 Grid template and provide a name for the Page, then select CREATE.
  4. In the Page Designer, use the FAVORITES section to add a Report Viewer component on the left and right side of the workspace.
    1. Use the arrow on the highlighted area around the component after it is placed to extend the component vertically in the workspace. 
  5. Use the GIF below to confirm the placement of the components. Save and close the Page Designer, then proceed to the next section.
  6. Back in the Designer Project, select CREATE REPORT on the top Action Bar. 
  7. Select the default Report tile and provide a name, then select CREATE.
  8. Select Add under Data Sources, expand the Common folder, and then select Account Data Source
  9. Select Add under Data Fields and Account Id at the minimum; other fields can be added for additional columns. 
  10. Select the Account Id Data Field tile and locate the SETTINGS section of the properties, then select Send Data as Filter Change Source and set the Filter Change Source Name to accountid
    1. This name has to match the configuration name on the other Report.
  11. Save and close the Report Designer once complete.
  12. Create another Report from the Designer Project using the default template.
  13. Search for Account Group Data Source to use as the Data Source
  14. Add Group Id to the Data Fields section.
  15. Select the Add button under Filters and navigate Field Filters > Account Id > Account Id Equals.
  16. When the Properties appear, change the Filter Name to accountid under the GENERAL section.
  17. Use the Runtime Behavior drop-down in the SETTINGS section to select Get Values From Other Reports.
  18. Save and close the Report Designer once complete.
  19. Edit the Page and select the Report Viewer component on the left.
  20. Select the PICK DEFAULT REPORT button in the Properties of the component under the REPORT SETUP section.
  21. Choose the Parent Report (containing the Account ID and no filter).
  22. Repeat this process for the Report Viewer component on the right and choose the Child Report (containing the Group ID based on the accountid filter).
  23. Then, navigate to SETTINGS > Part Type and select Child from the drop-down list. 
  24. Save and close the Page Designer, then right-click the name of it in the Designer Project and navigate to View > Preview Page.
  25. Select a line item in the Report on the left to see the data filtered based on that selection in the Report on the right.


Was this article helpful?