Usage and example
- Create an Application Studio report.
- Insert this sample data into the specified cell ranges:
B7:B11 C7:C11 D7:D11 E7:E11 Key Caption Visible Enabled Option_1 Option 1 TRUE TRUE Option_2 Option 2 TRUE TRUE Option_3 Option 3 TRUE TRUE Option_4 Option 4 TRUE TRUE - Create a report variable named rv_SelectedItem. Specify the unique name of the item to be preselected. For example, specify Option_1. In the properties of the variable, specify Option_1 as the default value and select False as the value of Is Persistent option.
- On each of the key cells ( B8, B9, B10, and B11), create an action with these characteristics:
- Actions: Type
- Select Set Parameters as the action type.
- Actions: Condition
- Select =TRUE.
- Actions: Mode
- Select Web Extension as the mode.
- Parameters: Name
- Click Add parameter and select the rv_SelectedItem variable.
- Parameters: Property
- Select Value(.Text).
- Parameters: Value
- Specify =Actions.Input.Text.
- Click Web Extension on the Objects toolbar and double-click the Radio Buttons web extension.
- Drag the cursor to insert, size, and position the web extension in the report.
The Format Web Extension dialog is displayed.
- Specify these parameters:
- Item Keys
- Specify =B8:B11.
- This refers to the range of cells that contain the unique names of the items.
- Item Data
- Specify =B7:E11.
- Refers to the range of cells that contain the data for the items' keys.
- Orientation
- Specify =""
- This specifies that the default, vertical alignment, is applied.
- Selected Item
- Specify rv_SelectedItem.
- This refers to the unique name of the currently selected item.
- Click OK and view the report in a web browser.