Home » Developer & Programmer » Forms » Disabling a node in hierarchical tree (oracle 10g)
Disabling a node in hierarchical tree [message #459144] Thu, 03 June 2010 09:49 Go to next message
blackrose_chennai
Messages: 4
Registered: June 2010
Junior Member
Hi iam new to oracle forms.

I have a hierarchical tree with two parent nodes.
Each parent node has different number of child nodes.
Can i disable or hide a node according to some condition??
If so, how to do it??
Re: Disabling a node in hierarchical tree [message #459198 is a reply to message #459144] Thu, 03 June 2010 20:59 Go to previous messageGo to next message
blackrose_chennai
Messages: 4
Registered: June 2010
Junior Member
Please atleast someone tell me wether its possible or not :(Sad
Re: Disabling a node in hierarchical tree [message #459213 is a reply to message #459198] Fri, 04 June 2010 00:19 Go to previous messageGo to next message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
Hi

It is not possible. You cannot set ENABLED/DISABLED or visible property to Node in the tree.

Sinida
Re: Disabling a node in hierarchical tree [message #459215 is a reply to message #459144] Fri, 04 June 2010 00:41 Go to previous messageGo to next message
blackrose_chennai
Messages: 4
Registered: June 2010
Junior Member
ty for the reply :)Smile

let me explain a scenario..there are two parent nodes called admin and employee...when admin logs in he should be able to select both the parent nodes and when a employee logs in he should be able to select only the employee node.

As you say let the nodes be visible and enabled...can i write a condition in when-node-selected or when-node-activated trigger to satisfy this criteria?? If so how do i write a code??
Re: Disabling a node in hierarchical tree [message #459407 is a reply to message #459215] Fri, 04 June 2010 12:28 Go to previous messageGo to next message
BS_99
Messages: 34
Registered: March 2010
Member
You can restrict the nodes by modifying the query that is responsible for loading the Hierarchical tree according to the logged in User type (Admin/Employee) .
Re: Disabling a node in hierarchical tree [message #459548 is a reply to message #459407] Sun, 06 June 2010 22:56 Go to previous message
blackrose_chennai
Messages: 4
Registered: June 2010
Junior Member
sorry for late reply..thanks for the help :)Smile

I solved it..


if :global.v_admin='No' then

FTREE.DELETE_TREE_NODE(v_htree, delete_node);

end if;

i removed the nodes according to the login using this built-in..thanks a lot :)Smile
Previous Topic: Set_menu_item property not work
Next Topic: Problem with List Item
Goto Forum:
  


Current Time: Fri Sep 20 08:46:07 CDT 2024