deleteNode() is used to delete nodes when the dialog works with a tree table. You can fill the program array before the dialog execution using BEFORE DISPLAY and BEFORE DIALOG control blocks.
The method needs two arguments:
CALL DIALOG.DeleteNode("screen_array", index)
screen_array |
passes the name of the screen array identifying the tree |
index |
specifies the index of the node that should be deleted from the program array |
There is some specifics about using variables with ui.Dialog methods.
You can learn about them here.
Unlike deleteRow(), deleteNode() deletes all child nodes and only after that removes the node identified by the index argument.