ui.Dialog.insertNode()

The InsertNode() method is similar in is performance to the InsertRow() method, but it should be used in a dialog controlling a tree view. The syntax of the method reference is:

 

DIALOG.InsertNode("screen_array", index)

 

Here, index is an integer value that specifies the sibling node in the program array before which the current one is to be inserted.

 

When the InsertNode() method passes the index to the next sibling node. In program array, the parent-id member of the new node gets the parent-id of the next sibling node. After that the internal tree structure is automatically rebuilt.