Embedded Dynamic Repeater Dashboard
The Embedded Dynamic Repeater dashboard is a type of dashboard used to add multiple instances of the same component without having to recreate each component individually. Unlike custom controls, you are not required to make additional embedded components. An example is a dashboard with the following requirements:
-
Multiple labels that have differing text
-
Many buttons that perform different actions
-
Multiple reports and charts with slight variations in data
NOTE: Embedded Dynamic Repeater dashboards are not visible outside the Workspaces page.
For organization, OneStream recommends you create your first dashboards using the Embedded Dynamic Repeater dashboard type, similar to the following image.
The Repeater Dashboard group contains these dashboards:
-
Child: This dashboard contains the components needed to create a dashboard.
-
Main: This dashboard contains the embedded component of the Middle dashboard. Set the Dashboard Type property to Top Level, Use Default, or Top Level No Parameters to ensure that the dashboard is visible outside the Workspaces page.
-
Middle: This dashboard has its Dashboard Type property set to Embedded Dynamic Repeater. You will also configure other properties as well. This is where you assign the Embedded component for the Child dashboard.
Component Template Repeat Items
Whichever dashboard you designate with the Embedded Dynamic Repeater dashboard type must have a few additional properties configured. Setting the dashboard type to Embedded Dynamic Repeater will activate the Component Template Repeat Items property.
To the right of the Component Template Repeat Items property, select the ellipsis button to repeat the component added to this dashboard and to display a dialog box to configure additional properties.
In the previous example, three versions of the same component have been repeated: FirstMonth, SecondMonth, and ThirdMonth. You must set the following General settings for each component:
-
Template Name Suffix: When the dashboard is run, the Template Name Suffix is added to the name.
-
Template Parameter Values: This setting resolves any parameters in the component or data adapter. In the following image, the Time parameter is resolved differently in each repeated item.
Template Parameters
Template parameters are slightly different than the typical parameters used within OneStream. Template parameters in Embedded Dynamic Repeater dashboards use the following syntax: ~!ParameterName!~
The following image is an example of a template parameter used in a SQL data adapter:
This parameter type does not prompt you for information and can only be resolved through the Template Parameters property.
The Component Template Repeat Items property enables you to repeat the component and vary the parameter setting each time. Use the Template Parameter Values property to resolve the parameter without repeating it.
NOTE: You cannot use this parameter type in Cube Views.
Embedded Dynamic Repeater in Design Mode
When you use the Embedded Dynamic Repeater dashboard in design mode, you can view your changes to the dashboard and see variations. For example, in the following image, it looks as though three separate dashboards, grid components, and data adapters have been added to the Middle Grid dashboard.
But, if you look at the Workspace > Dashboard > Dashboard Component tab, only one Embedded component was added.
This means that the view in design mode shows different variations configured through the Embedded Dynamic Repeater dashboard components.
Dynamic Bound Parameter
When using an Embedded Dynamic Repeater Dashboard type, any components that use a bound parameter can be dynamically created and repeated to support Template Substitution variables. The syntax is (~|SubstitutionVariable|~). Components that are set up to use bound parameters ensure that template parameters are substituted before running a bound parameter.
While in design mode, you can view the dashboard that displays the Dynamic Bound parameters in the navigation tree. You can select the Dynamic Bound parameter to highlight its parent control.
NOTE: A red border will highlight the parent control of the Dynamic Bound parameter.
To go to the Workspaces page, select a Dynamic Bound parameter and select the Edit Dashboard icon in the design mode toolbar.
The parameter will be selected.