Creating split view windows

The application specifies which window opens in which pane by using the STYLE attribute in the OPEN WINDOW instruction.

Specify either LEFT or RIGHT for the TYPE attribute, to define a left-hand side pane and a right-hand side pane of the split view respectively.
Important: Both left (TYPE=LEFT) and right (TYPE=RIGHT) split-view windows need to be created.

This example specifies that the window w_left (with the form customer_list) display in the left pane, and the window w_right (with the form customer_detail) display in the right pane:

OPEN WINDOW w_left WITH FORM "customer_list" ATTRIBUTES(TYPE=LEFT)
OPEN WINDOW w_right WITH FORM "customer_detail" ATTRIBUTES(TYPE=RIGHT)

The window content of both panels will be controlled by parallel dialogs.

Important:

Split-view windows must be the root window (after closing the default SCREEN window), or direct children of the NAVIGATOR window, if it is used. If regular windows are created before split views, these must be closed:

Case 1: Close regular windows created before the split-views:

CLOSE WINDOW screen
OPEN WINDOW w1 WITH FORM "form1"
...
CLOSE WINDOW w1
...
OPEN WINDOW w_left WITH FORM "customer_list" ATTTRIBUTES(TYPE=LEFT)
OPEN WINDOW w_right WITH FORM "customer_detail" ATTRIBUTES(TYPE=RIGHT)
...

Case 2: Create split-views as direct NAVIGATOR children

CLOSE WINDOW screen
OPEN WINDOW w_main WITH 10 ROWS, 80 COLUMNNS ATTRIBUTES(TYPE=NAVIGATOR)
...
OPEN WINDOW w_left WITH FORM "customer_list" ATTTRIBUTES(TYPE=LEFT)
OPEN WINDOW w_right WITH FORM "customer_detail" ATTRIBUTES(TYPE=RIGHT)
...

When using a navigator window, the names of the split view windows must match the action names created in the parallel dialog controlling the options of the navigator pane. For more details, see Navigator pane.