When a detail block is in a different window than its master, and each window is non-modal, then the detail block must provide a mechanism for the user to toggle between immediate and deferred coordination. This allows a user to keep a block visible, but control the performance cost of coordinating detail records when the master record is changed.
When a detail block is not visible, its coordination should always be deferred. Use the procedure APP_WINDOW.SET_COORDINATION to coordinate master-detail blocks in different windows.
See: APP_WINDOW: Window Utilities
The sample code below uses the following objects:
Master block ORDERS, in window ORDERS
Detail Block LINES, in window LINES
Relation ORDERS_LINES
Coordination check box CONTROL.ORDERS_LINES
Button to navigate to the LINES block CONTROL.LINES