Specifies the selection of a single node.
PROCEDURE SET_TREE_SELECTION
(item_name VARCHAR2,
node NODE,
selection_type NUMBER);
PROCEDURE SET_TREE_SELECTION
(item_id ITEM,
node NODE,
selection_type NUMBER);
Built-in Type unrestricted procedure
Enter Query Mode no
SELECT_ON Selects the node.
SELECT_OFF Deselects the node.
SELECT_TOGGLE Toggles the selection state of the node.
This code could be used in a WHEN-TREE-NODE-EXPANDED trigger and will mark
the clicked node as selected.
/*
** Built-in: SET_TREE_SELECTION
*/
DECLARE
htree ITEM;
BEGIN
-- Find the tree itself.
htree := FIND_ITEM('tree_block.htree3');
-- Mark the clicked node as selected.
FTREE.SET_TREE_SELECTION(htree, :SYSTEM.TRIGGER_NODE, FTREE.SELECT_ON);
END;