Configuring the Main report

This example shows how to create modal buttons and store the selection in report variables for further processing.

  1. Create an Application Studio report named Main.
  2. In the Properties - Report pane set the Immediate Writeback option to Automatic.
  3. Create a report variable named Color. This variable holds the current selection of the value.
  4. Drag the Color report variable to D9 cell.
  5. Specify Selected color: in C9 cell.
  6. Create a command button in E9:F9 cell range.
  7. Double click the button and specify Change Color as the caption text.
  8. Select Click to execute an action.
  9. 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.
  10. Click OK.
  11. Save the report.