Adding a Close dialog event action

Use the Close dialog event action to close a dialog window that is created in the Show dialog event action.

Before you begin

You must have a previously created modal dialog window.

About this task

To add and define the Close dialog event action, perform the following steps:

Procedure

  1. In the editor window, select the object to which you want to add the action.
  2. Double-click the event that you want to trigger the action from the Events view.
    The [objectname] Behavior window opens.
  3. Click the Add button.
    The Add New Action window opens.
  4. Select Close Dialog in the actions tree and click Next.
    Note: To quickly find the required event action, type the name of the action in the filter text field.
  5. In the Add New Action window, specify the return action parameter in the Return value field. You can use the specified value in the event actions that you add in the Show dialog event action.
  6. Click Finish.
    The Close dialog event action is added. The Add New Action window closes.
  7. From the [objectname] Behavior window, click Apply to apply all actions that were added for the event. Click OK to close the [objectname] Behavior window.

Results

You added the Close dialog event action to the object.