When incorporating interactive filtering via Controls (e.g., Combo box, List Box, etc), you may want to show the same Control on multiple pages so viewers can change the filtering selection on any page. This article describes how to show Controls on multiple Pages so that the selections can be changed on any page while remaining in sync across all pages. You can do this across any Page in Normal and Page Master view. There are two different methods that can be used alone or in combination:
Requirements
- A Displayr document.
- Controls can only be linked to the same type of Control (i.e., Combo Box to Combo Box).
Method - Configure on a Page Master Layout
If you add a Control to a Page in the Page Master, it will automatically show up on every page in Normal view that uses that Layout. While you can see and change selections in the Control in Normal view, you will need to go back to the Page Master to reposition, style, and configure the settings of the Control.
- Optional: If you already have your Control configured as you like, select it and right-click> Cut so you can then paste onto the Page Master page.
- Go to a Page in your Document where you want to use the shared Control.
- Click View Page Master
in the Report tree. To edit that Layout in the Page Master.
- Either insert a new Control via Control
in the toolbar, or right-click > Paste to paste the Control you copied in Step 1.
- Configure your Control as you'd like it to show up on all the Pages with this Layout. See the appropriate Combo Box Filter, List Box Filter, Text Box Filter, and Date Filter for more details.
- Optional: In the Report tree, right-click and Rename your Page to a more descriptive name like Control Page.
- Click Exit Page Master
in the Report tree to go back to Normal view.
- Now you can select this Page layout when inserting a new Page via the Report tree (+ > Page), or change any existing Pages via Properties
> Appearance > Layout > Page layout dropdown.
Method - Link to a Main control
No matter if the Control is on a Page in Normal view or in Page Master, you can link it to a Main control to have the Control selection settings synced. This enables you to show the same Control on different Layouts, and allows you to style the font, background, and border of the Control differently across Pages. Note that Controls that are linked to a Main control cannot then be a Main control on another.
- Optional: If you already have a Control styled as you like, select it and right-click> Copy so you can then paste it onto another Page without needing to restyle.
- In Normal or Page Master view, go to a Page in your Document where you want to use the shared Control.
- Either insert a new Control via the Control
from the toolbar or right-click> Paste to paste the Control you copied in Step 1.
- With the Control selected, go to Properties
and select the Control you want to sync to in the Control > Main control dropdown. Note that only Controls of the same type (i.e., Combo box, List box, etc) and that are not already linked are listed.
Next
How to Create a Combo Box Filter
How to Connect Filters to Controls Using R Code
How to Dynamically Change Binary or Numeric Variable Sets in an Output Based on a Control Box
How to Select Which Rows or Columns to Show in a Visualization Based on a Control Box Selection
How to Switch Logos and Images Based on a Control Box Selection
How to Control Which Calculations are Filtered in View Mode