CenterView supports the use of variables in almost any XML object or object attribute for providing dynamic dashboard structure and content—giving a dashboard the flexibility to adapt and respond to specific user needs. CenterView provides the following variables types:
Dashboard The scope of a Dashboard variable is global to the dashboard in which it is defined. Dashboard variables are session variables, meaning that the variable values survive only for the current session. Dashboard variables can be defined in the following dashboard objects: checkbox, drop-down, radio-group, server-script, text-entry, and variable-defaults.
User Property A user property is a user-specific dashboard variable. The scope of a user property is global to the dashboard where it is defined. Unlike regular dashboard variables, CenterView stores user properties between sessions, so they are available each time a user accesses a given dashboard. User properties can be defined in the following dashboard objects: checkbox, drop-down, radio-group, server-script, text-entry, and variable-defaults.
| Warning: Because of their global scope, be very careful when modifying Dashboard variable values and user property values so as not to cause unintended changes to other portions of the dashboard. |
Request The scope of a request variable is local to the XML object (including all child objects) where it is defined. (Request variables can be passed down from dashboards to pages to KPIs to datafunnels, but they cannot be modified by a KPI and handed back up to a page. Typically, they are scoped to the page or the currently visible dashboard.) Request variables are session variables, meaning that the variable values survive only for the current session. Request variables can be defined in the following dashboard objects: checkbox, data-source, drilldown, drop-down, kpi, page, radio-group, table-alias, text-entry, and variable-defaults. Request variables are the default variable type. If not explicitly specified, a variable is assumed to be a Request variable.
To use variables effectively, you should understand the following variable-related concepts: