Report Studio

Creating and Managing Active Report Variables

 

Create active report variables to allow controls in a report to interact with each other. Active report variables pass information from one control to another control.

You can also create active report variables when you define connections between controls. However, you may want to modify these variables, such as changing the name or defining default values.

In addition, active report variables allow active reports inserted in a workspace in IBM Cognos Workspace to interact with each other. For example, selecting a product line in one active report causes another active report to show the data for the selected product line. In addition, variables allow check boxes and sliders in a workspace in Cognos Workspace to drive active reports in the workspace.

Active report variables must meet the following criteria to work in Cognos Workspace:

To create and manage active report variables:

  1. Click the Active Report Variables tab.
  2. Create a variable:
  3. Click Create a New Variable.
  4. In the Name box, type the name of the variable.
  5. Click the Data Type drop-down menu and click the type of variable that you want to create.
  6. To make the variable public, select the Public (External) box.
  7. If you want to specify a default value for the variable, click Set Default Value(s) and define the values that you want.
    Note: Define multiple default values when you want more than one item selected in a control that allows multiple selections, such as a check box group.
  8. To modify an existing variable right-click the variable or click Edit Variable.
  9. To add a default value, click Set Default Value(s).
    To change a default value, click the name of the current default value specified for the variable.
  10. Create a range variable:
  11. Create the variables that will defined the minimum and maximum values of the slider.
    The variables must have the number data type.
    Note: Range variables are automatically set as public variables. Do not make the variables that are used to defined the minimum and maximum values of the slider public.
  12. Click Manage Ranges.
  13. Click the New icon.
  14. In the Name box, type the name of the range variable.
  15. Click the Minimum Variable list and select the variable that will be used to set the minimum value of the slider.
  16. Click the Maximum Variable list and select the variable that will be used to set the maximum value of the slider, then click OK twice.
    Note: If you later delete the minimum or maximum variable, the range variable is also deleted.

 

Define a connection between controls to link them together. When you link controls, an action performed on one control affects the behavior of the other control.

 

Related Topics: