Open dialog and Close dialog actions

This example illustrates the interaction between the Open Dialog and Close Dialog actions, and the Dialog OK and Dialog Cancel modes.

  1. Create reports named Source, Target, On OK and On Cancel.
  2. In the Source report, specify Open Target Report in a cell.
  3. Right-click Open Target Report and select Define Action.
    The Define Action dialog is displayed.
  4. Select Open dialog as the Type and Hyperlink as the Mode.
  5. In Inputs, select Target as the value of the Target Report.
  6. Double-click Add Action and select Jump as the Type and Dialog OK as the Mode.
  7. Select On OK as the target report.
  8. Double-click Add Action and select Jump as the Type and Dialog Cancel as the Mode.
  9. Select On Cancel as the target report.
  10. Click OK.
  11. Open the Target report.
  12. Insert a button in a cell.
  13. Double-click the button.
    The Object Properties dialog is displayed.
  14. Label the button OK.
  15. Select Click to execute an action and click the browse button.
    The Define Action dialog is displayed.
  16. Select Close dialog as the action Type and Button click as the Mode.
  17. In Inputs, select OK as the value of the Dialog Result input.
  18. Click OK.
  19. Insert a second button in the report and label it Cancel.
  20. Repeat Steps 15 to 18 but, at Step 17, select Cancel as the value of the Dialog Result input.
When you click Open Target Report in the Source report, the Target report opens. If you click OK, the Target report closes and the On OK report opens. If you click Cancel in the Target report, the On Cancel report opens.