Oracle Forms: Populating Nodes

Oracle Forms: Populating Nodes

 

  

Hi,

I am able to populate a hierachical trees node using the code below, but
how can I populate the nodes with child nodes up to two levels. Anyone
have some sample code please!!!

Procedure Populate_Tree is

Tree_item Item;

New_Node Ftree.Node;

Cursor Cur_Tree is select distinct role_id, role_name from
tbl_roles order by role_id;

Begin

Tree_item:=Find_Item('Tree_Block.tree');

For X in Cur_Tree

Loop


New_Node:=Ftree.Add_Tree_Node(Tree_item,Ftree.Root_Node,Ftree.Parent_Off
set,1,Ftree.Collapsed_Node,

X.Role_Name, 'MyIcon.ico',X.Role_id);

End Loop;

End;


=================================
This e-mail and any attachments hereto may contain information that is confidential and/or proprietory and is intended for the sole use of the addressee(s). If you are not the intended addressee or the person responsible for delivering it to the addressee, notify the sender and delete it immediately. Reserve Bank of Malawi accepts no liability whatsoever for loss or damage resulting from the use of the information contained in this message


Oracle LazyDBA home page