Sets the state of a branch node.
PROCEDURE SET_TREE_NODE_PROPERTY
(item_name VARCHAR2,
node FTREE.NODE,
property NUMBER,
value NUMBER);
PROCEDURE SET_TREE_NODE_PROPERTY
(item_name VARCHAR2,
node FTREE.NODE,
property NUMBER,
value VARCHAR2);
PROCEDURE SET_TREE_NODE_PROPERTY
(item_id ITEM,
node FTREE.NODE,
property NUMBER,
value NUMBER);
PROCEDURE SET_TREE_NODE_PROPERTY
(item_id ITEM,
node FTREE.NODE,
property NUMBER,
value VARCHAR2);
Built-in Type unrestricted procedure
Enter Query Mode no
Specify one of the following properties:
NODE_STATE Possible values are EXPANDED_NODE, COLLAPSED_NODE, and LEAF_NODE.
NODE_LABEL Sets the label of the node.
NODE_ICON Sets the icon of the node.
NODE_VALUE Sets the value of the node.
This code could be used in a WHEN-TREE-NODE-SELECTED trigger to change the icon of the node clicked on.
/*
** Built-in: SET_TREE_NODE_PROPERTY
*/
DECLARE
htree ITEM;
current_node FTREE.NODE;
find_node FTREE.NODE;
BEGIN
-- Find the tree itself.
htree := FIND_ITEM('tree_block.htree3');
-- Change the icon of the clicked node.
-- The icon file will be located
-- in the virtual directory.
FTREE.SET_TREE_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'Open');
END;