Variables

Variables can be used to pass values within and between reports. For example, if variables are used in formulas, the values returned by those formulas update automatically when the value of the variable changes. Or, you can use variables as input and output variables in combo boxes to ensure that a selection made in one report is automatically selected in a second report.

See input and output variables

Global variables are available throughout a report catalog. Report variables are available only in the report in which they are created.

Global variables allow users to interact with a group of reports as a whole, instead of with a set of individual reports. But, you may sometimes want to present reports in a variety of different states. Report variables allow you to do this. You can copy report variables into separate reports and set their values individually.

Global and report variables can have:

  • A value for the current user
  • A default value
  • A value for a specified user or role

See Managing variables.

You can display the current value of a variable in a report with this syntax:

=variablename.text
	 

Both types of variable are displayed in the Accessories pane of the Repository Explorer.

See Accessories pane.