A script-enabled browser is required for this page to function properly.

GET_TREE_NODE_PARENT Built-in

Description

Returns the parent of the specified node.

Syntax

FUNCTION GET_TREE_NODE_PARENT
(item_name VARCHAR2,
node NODE);

FUNCTION GET_TREE_NODE_PARENT
(item_id ITEM,
node NODE);

Returns FTREE.NODE

Built-in Type unrestricted function

Enter Query Mode no

Parameters

item_name

Specifies the name of the object created at design time. The data type of the name is VARCHAR2 string.

Item_id

Specifies the unique ID that Oracle Forms assigns to the item when created. Use the FIND_ITEM Built-in to return the ID to an appropriately typed variable. The data type of the ID is Item.

node

Specifies a valid node.

GET_TREE_NODE_PARENT Example

/*

** Built-in: GET_TREE_NODE_PARENT
*/

-- This code could be used in a WHEN-TREE-NODE-SELECTED
-- trigger to locate the parent of the node that was
-- clicked on. 
DECLARE
htree ITEM; 
parent_node FTREE.NODE; 
BEGIN
-- Find the tree itself. 
htree := Find_Item('tree_block.htree3');   
-- Get the parent of the node clicked on. 
parent_node := Ftree.Get_Tree_Node_Parent(htree, :SYSTEM.TRIGGER_NODE);   
... 
END;