When creating a report, you may want to organize content into different sections or groups. You can group similar pages together as a sub-page group to be able to hide and expand the list of pages as needed when navigating the document.
This article describes the various ways of creating sub-pages in the Report tree. In this example, Missing Values Analysis and Scatterplot matrix analyses sub-pages are stored in a parent-level page named Data Examination, and Linear Regression and Stepwise Regression model sub-pages are grouped into a parent-level page named Regression Models. The pages labeled Cook's Distance and Heteroscedasticity are not stored as sub-pages.
Requirements
- Some options require the use of QScript. To use this, you will need a Displayr Enterprise user license, which includes the ability to add custom analysis menu items.
Method
A parent-level page in the Report tree is essentially a page similar to a section slide in PowerPoint. This means users can click on a parent-level page and be taken to sub-pages in your published dashboard, and the parent-level page will be exported as a slide to PowerPoint. This means you can also format a parent-level page as any other page in your document, adding text, tables, and other outputs as needed. Given this, parent-level pages and sub-pages can be made in a few different ways:
1. Dragging a page onto another page
In the Report tree, you can drag any Page(s) on top of a Page to convert the Page into a parent-level page and have the selected sub-pages nested underneath.
2. Clicking the + icon in the floating toolbar while an existing page is selected
3. Using QScript Functions
See How to Create a Custom QScript for more information on writing QScripts. A specific function - project.report.appendFolder() can be applied to add parent-level pages and sub-pages to the Report tree.