I have 1 htree item on form....i have creted 1 recordgroup with query " select * from table1".... table having 3 columns...
and have folowing code
DECLARE
htree ITEM;
rg_data RECORDGROUP;
BEGIN
-- Find the tree itself.
htree := Find_Item('tree1');
-- Find the record group.
rg_data := FIND_GROUP('RG1');
-- Add the new node at the top level and children.
Ftree.Add_Tree_Data(htree,
Ftree.ROOT_NODE,
Ftree.PARENT_OFFSET,
Ftree.LAST_CHILD,
Ftree.RECORD_GROUP,
rg_data);
END;
When I run above code i dont get any error..but it doesnot display anything...
and in the status bar i get following msg...
FRM-47321 Data used to populate the tree is invalid...
So, what is the way if i want to populate the tree with recordgroup.