Dashboard Variables
You can use dashboard variables to quickly change the data that widgets display without creating a new widget. You can create a series of widgets that show the same metric for a different entity, and view information from multiple applications by simply switching the variable linked to application name. You can also build a dashboard by copying groups of widgets and switching the variable set for each group.
Dash Studio enables you to toggle with ease between variables at the dashboard-level, or group-level. You can define and set variables at various levels of the dashboard, whether for the dashboard at a high level, or for the group at the group level. You can define the variables that you want to set for a group.
Define Variables
You can define variables in a dashboard and across an assembly. Dash Studio supports the following variable types:
- Applications
- Browser Applications
- Mobile Applications
- Business Transactions
- Tiers
- Nodes
- Servers
- Databases
- Analytics Table
Set Variables
You can set variables to change the values used by a variable across an assembly or within a container. This can occur at the container level and assembly level.
Inherit Variables
Group Variable Inheritance
For group level, variable inheritance is inherited from parents to children. For example, a group inherits its variable definition from the dashboard in which it sits, however the dashboard does not inherit variable definitions from a group. This is because you cannot define variables at the group level.
Assembly Variable Inheritance
For assemblies, the sibling assemblies inherit variable definition from their siblings. For example, an assembly inherits its variable definition from the assembly from which it was made.
Nested Variables
You can nest one variable within another variable. For example, you can create a tier variable within an application variable and then bind the data using these variables.
Widget Variables
You can create variables for the widget title and subtitle for all the widgets. For example, if you want to create variables for applications and analytics data, perform the following steps:
- Select any widget and under , turn on Subtitle.
- Create two variables of the following types:
- Variable 1: Applications
- Variable 2: Analytics Table
- Select Show in View Mode.
- Change the title with
${Variable 1}and subtitle with${Variable 2}. - Click View to display the widget in view mode.This groups all the application under Variable 1 and Analytics data under Variable 2. You can then change the variable values to filter the results.
Dash Studio supports using variables for the following widgets:
Label Widget
While creating or updating a Label widget, you can use a variable in the label text. Create a variable and add ${Variable-name} to the label text.
Image Widget
While creating or updating an Image widget, you can use a variable instead of a static URL. Use a variable by specifying the following under Data:
- Image: Select By URL.
- URL: Specify the image URL and add the variable name. For example,
https://example-imageUrl/${Variable-name}
Iframe Widget
While creating or updating an Iframe widget, you can use a variable instead of a static URL. Use a variable by specifying the URL with the variable under Data. For example, https://example-domain/${Variable-name}