Refreshing a parallel dialog
To restart a parallel dialog, use TERMINATE DIALOG
+ START
DIALOG
.
Once the split view parallel dialogs are started, the typically programming pattern to refresh
the detail view of the right pane is to restart the detail dialog by executing a
TERMINATE DIALOG
followed by a START DIALOG
.
The next example shows the case of a list view master (d_list_view
dialog)
displayed on the left pane, which is bound to a detail view of the right pane
(d_detail_view
dialog). The detail information must be refreshed when
moving to a new row (BEFORE ROW control block):
DIALOG d_list_view()
DISPLAY ARRAY arr TO sr.*
ATTRIBUTES(ACCESSORYTYPE=DISCLOSUREINDICATOR)
BEFORE ROW -- in BEFORE ROW, we restart the details view
CURRENT WINDOW IS w_right
TERMINATE DIALOG d_detail_view
LET curr_pa = arr_curr()
DISPLAY BY NAME arr[curr_pa].*
DISPLAY SFMT("tapped row %1",arr_curr()) TO info
START DIALOG d_detail_view
CURRENT WINDOW IS w_left
END DISPLAY
END DIALOG