Previous Topic: GUI Presentation ActionsNext Topic: Conditional OPEN


OPEN Statement

The OPEN statement causes the referenced dialog box within the current procedure to be opened after execution of the procedure or event handler.

Flows must be used to initiate opening windows or dialog boxes in other procedures.

OPEN is useful if additional processing is needed before a dialog box is displayed.

OPEN statements are not executed when they are encountered in the action language. They are placed in a FIFO queue. The dialog boxes are opened once the procedure or event handler completes execution.

The last dialog box opened gains the focus. Focus represents the part of the user interface that will receive the next piece of input if no navigation occurs before the input is generated.

If you are using the MAKE action to position the cursor to a field in another dialog box, you must consider when the dialog box is to open. If the MAKE action comes after OPEN, the MAKE will have no effect. This is because the opened dialog box obtains focus (control), which negating the MAKE action.

If multiple OPENs are executed for the same dialog box during an execution of a procedure or event handler, that dialog box will be opened only once. Subsequent executions of a procedure or event handler for a modal dialog box will not allow the box to be open multiple times.

A modal dialog box requires the user to respond to the dialog before continuing work in the application.

A modeless dialog box lets the user leave the dialog and continue working with other dialogs in the application.

--- EVENT ACTION accounts_pb_sort_click |    USE account_metadata |       WHICH EXPORTS:   Group View export_sort_from |                        Work View output_sort_metadata  --- OPEN Dialog Box sort

In this example, data loads in a local view when the user clicks a push button. This is needed before the sort or filter dialog box is opened.