Home » Developer & Programmer » Forms » problem in hierarchical tree
problem in hierarchical tree [message #635366] Sat, 28 March 2015 03:06 Go to next message
hahaie
Messages: 194
Registered: May 2014
Senior Member
hi all,
i have a hierarchical tree on my form.
for example i want when user cliced on a node of tree show window.
i used WHEN_TREE_NODE_SELECTED::
/*this codes is a example*/
 if :system.trigger_node=1 then
    show_win('win1');
 elsif :system.trigger_node=2 then
     show_win('win2');
 elsif :system.trigger_node=3 then
     show_win('win3');
 end if;

but problem:
when i click on each node first time this is correct but for example i click on node 1 win 1 shown and then click on node 2(or 3)first showed win1 and second showed win2(or win3).
why?
Re: problem in hierarchical tree [message #635457 is a reply to message #635366] Mon, 30 March 2015 10:48 Go to previous messageGo to next message
CraigB
Messages: 386
Registered: August 2014
Location: Utah, USA
Senior Member
Please read the Forms Help topic for the ':SYSTEM.TRIGGER_NODE' system variable. This variable returns a value of TYPE NODE not of TYPE number. You should be calling the FTREE.Get_Tree_Node_Property() to get the value of the select tree node. There is a nice example of using this built-in in the help topic for the system variable.

Craig...
Re: problem in hierarchical tree [message #635494 is a reply to message #635457] Tue, 31 March 2015 01:32 Go to previous message
hahaie
Messages: 194
Registered: May 2014
Senior Member
Thanks a lot
Previous Topic: how to count checked check boxes along with their checked and unchecked conditon
Next Topic: Scan document thru Oracle Forms
Goto Forum:
  


Current Time: Thu Mar 28 06:09:32 CDT 2024