The Purchase Order header window contains a button labeled "Lines" that leads to the LINES block in a different window.
Add or modify the following triggers:
Trigger: PRE-FORM:
app_window.set_window_position('HEADER','FIRST_WINDOW');
Trigger: WHEN-BUTTON-PRESSED on the LINES button:
app_custom.open_window('LINES');
Modify APP_CUSTOM.OPEN_WINDOW as follows:
IF wnd = 'LINES' THEN
APP_WINDOW.SET_WINDOW_POSITION('LINES',
'CASCADE','HEADER');
go_block('LINES');
END IF;
The styles available are:
CASCADE: Child window overlaps the parent window, offset to the right and down by 0.3" from the current position of the parent window. Usually used for detail windows.
RIGHT, BELOW: Child window opens to the right of, or below, the parent window without obscuring it.
OVERLAP: Detail window overlaps the parent window, aligned with its left edge, but offset down by 0.3".
CENTER: Window opens centered relative to another window. Usually used for modal windows.
FIRST_WINDOW: Position the window immediately below the toolbar. Usually used for the main entity window.