This article describes how to use the same Control (e.g. Combo box) on multiple Pages in your document. By doing this, your Control will show the current selections and can be changed no matter which Page of your report you are on. It will also allow you to use the same Filter variable linked to the Control across multiple pages.
Requirements
- A Displayr document.
- A Control Box object (see How to Create a Combo Box Filter or How to Create a List Box Filter).
Method
- In your Displayr document, Page Master
at the bottom of the screen.
- Select one of the existing template pages in the Master tree, right-click, and select Duplicate.
- Under General > Label in the object inspector
, give this new page a distinctive name, e.g., "Control Page".
- Exit the Page Master view by clicking Exit Page Master at the bottom of your screen
- Select the Control(s) you wish to use on multiple Pages and press CTRL+X on your keyboard to cut the objects. This may cause some outputs to show an error, but this will be resolved in the next step.
- Return to the Page Master (Step 1), select the Page (e.g., "Control Page"), and press CTRL+V on your keyboard to paste the controls back in.
- Position the Control (s) to the desired position on the Page, and click Exit Page Master.
- To add the controls to an existing page, select the Page, go to the object inspector
> Appearance > Layout > Page Layout, and select the "Control Page" from the list.
- To add a Page with the Control(s), from the Report tree, click + > Page > and select the "Control Page" layout.
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