Using regular DISPLAY ARRAY control blocks

Simple table DISPLAY ARRAY control blocks can be used with tree-views.

If needed, you can implement traditional DISPLAY ARRAY control blocks like BEFORE ROW or AFTER ROW:
DISPLAY ARRAY tree_arr TO sr.* ATTRIBUTES(UNBUFFERED)
  BEFORE ROW
    DISPLAY "BEFORE ROW - Current row is: ", DIALOG.getCurrentRow("sr")
  AFTER ROW
    DISPLAY "AFTER ROW  - Current row is: ", DIALOG.getCurrentRow("sr")
END DISPLAY