Specify the Reaction Behavior of a Control
About this task
You can specify the following reaction behaviors:
- Select an item in a control.
You can specify this reaction behavior for any control, except for single button controls.
For example, you specify a default value for a variable, and the variable drives a drop-down list control. When the report is run, you want the default value to appear in the control.
You can also specify to select the first or last item in a control by default. For example, an active report contains two data radio button groups that are connected to each other. The first data button group is driven by Product line and the second data button group is driven by Product type. When a user clicks on a product line, the product types that belong to the selected product line appear in the second radio button group, and you want the first or last radio button in the product type radio button group to be selected.
- Filter data in a control.
For example, you want to filter the product types in a drop-down list control based on the product line selected in another drop-down list control.
You can specify this reaction behavior for drop-down lists, data drop-down lists, list boxes, data list boxes, radio button groups, data radio button groups, check box groups, data check box groups, lists, and crosstabs.
- Enable a control.
For example, you want to make a control interactive only when a selection is first made in another control.
You can specify this reaction behavior for any control, except for decks, data decks, tabs, data tabs, lists, crosstabs, charts, and maps.
In addition to these behaviors, you can specify the item to appear when nothing is selected in a list control, hide or show a column, and whether to allow data to be sorted in a list.
IBM® Cognos® Report Studio automatically sets the reaction behavior when you define a connection between controls. However, you may want to change the reaction behavior or specify additional interactive behavior.