Configuring the Main report
This example shows how to create modal buttons and store the selection in report variables for further processing.
- Create an Application Studio report named Main.
- In the Properties - Report pane set the Immediate Writeback option to Automatic.
- Create a report variable named Color. This variable holds the current selection of the value.
- Drag the Color report variable to D9 cell.
- Specify Selected color: in C9 cell.
- Create a command button in E9:F9 cell range.
- Double click the button and specify Change Color as the caption text.
- Select Click to execute an action.
-
In the Edit Action dialog box, define an action with these
settings:
- Actions
- Type
- Specify Open dialog.
- Condition
- Specify =TRUE.
- Mode
- Specify Button click.
- Type
- Specify Set parameter.
- Condition
- Specify =TRUE.
- Mode
- Specify Dialog OK.
- Inputs/Options. Specify only for the Open dialog type
action.
- Target report
- Specify Change color.
- Dialog title
- Specify Formula (="").
- Position
- Specify Center.
- Width
- Specify Automatic.
- Height
- Specify Automatic.
- Show dialog margins
- Specify No.
- Parameters. Specify only for the Set parameters type action.
- Name
- Specify Color.
- Property
- Specify Value(.Text).
- Value
- Specify =GlobalVariables.Result.text.
- Actions
- Click OK.
- Save the report.