Home » Developer & Programmer » Forms » Multiple selection in Hierarchical tree (oracle forms 9i on window xp)
Multiple selection in Hierarchical tree [message #515540] Tue, 12 July 2011 02:55 Go to next message
hemantkaus
Messages: 6
Registered: October 2010
Location: India
Junior Member

Hi guru's

I have to create a functionality on a button through which
all nodes of hierarchical tree will be selected.
I know that this is possible with mouse (one-by-one+Ctrl).
But,I have to done this on button.
Is this possible if yes then how.
Regards,
Hemant

[Updated on: Tue, 12 July 2011 03:06]

Report message to a moderator

Re: Multiple selection in Hierarchical tree [message #515726 is a reply to message #515540] Wed, 13 July 2011 02:08 Go to previous message
hemantkaus
Messages: 6
Registered: October 2010
Location: India
Junior Member

Hi All,

I find the solution.
This is my code,I hope this will help other's also;

DECLARE
fetch_count NUMBER;
htree ITEM;
selected_node NUMBER;--FTREE.NODE;
BEGIN


htree := Find_Item('report_hierarchy.report_hierarchy');
fetch_count := Ftree.Get_Tree_Property(htree,Ftree.NODE_COUNT);--,ftree.selection_count);
FOR i in 1..fetch_count LOOP

Ftree.Set_Tree_Selection(htree,i,Ftree.SELECT_ON);

END LOOP;

END;
Cool Cool Cool

Previous Topic: Starting an Oracle web form on computer startup
Next Topic: problem with upload excel form
Goto Forum:
  


Current Time: Sun Sep 08 23:04:12 CDT 2024