Index

(treeview)

o2tree_node_add

string o2tree_node_add(string $name, string $node_id, string $parent_id, string $node_code)

ATTENTION: Treeview scripting definition and usage are DEPRECATED. Use a Treeview control from development interface (JXOB) instead.

Add a new node to treeview.
If Node ID is zero a progressive numeric ID will be assigned to node.
If Parent ID is zero node will be top level.
Function returns new node assigned ID.


Parameters:
  1. $name
  2. Control unique name
  3. $node_id
  4. Node unique ID
  5. $parent_id
  6. Parent node ID, if none node is top level
  7. $node_code
  8. HTML code to be displayed as node content