Home » Developer & Programmer » Forms » can help me for Set_Tree_Node_Property
can help me for Set_Tree_Node_Property [message #274073] Sat, 13 October 2007 07:56 Go to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
hi david
i want change icon for node select in tree.i write this code in WHEN-TREE-SLECTED:

declare
htree ITEM;
begin
htree := FIND_ITEM('MYTREEBLOCK.TREE');
Ftree.Set_Tree_Node_Property(htree,:SYSTEM.TRIGGER_NODE,Ftree.NODE_ICON,'open');
end;

But in compling form,Compiler say error 307 like this:

Error 307 at line 5,column3
too many declaration of 'SET_TREE_NODE_PROPERTY' match this call

can you help me and say what is wrong?
Re: can help me for Set_Tree_Node_Property [message #274174 is a reply to message #274073] Sun, 14 October 2007 21:31 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Search this forum for 'trigger_node' and you will find http://www.orafaq.com/forum/m/215770/67467/?srch=TRIGGER_NODE#msg_215770

David
Re: can help me for Set_Tree_Node_Property [message #274178 is a reply to message #274073] Sun, 14 October 2007 22:34 Go to previous messageGo to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
Thank's David. Cool
Re: can help me for Set_Tree_Node_Property [message #274389 is a reply to message #274073] Mon, 15 October 2007 22:46 Go to previous messageGo to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
Thank you For Your Guid David,this code (http://www.orafaq.com/forum/m/215770/67467/?srch=TRIGGER_NODE#msg_215770) is for add a new node to tree but i want change icon for an existing node of tree in run time when click on node.
Please Help me for change icon for node in tree
Re: can help me for Set_Tree_Node_Property [message #274435 is a reply to message #274389] Tue, 16 October 2007 01:23 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you tried searching for 'trigger_node' or the other keywords that appeared in the post to which I referred?

David
Re: can help me for Set_Tree_Node_Property [message #274524 is a reply to message #274435] Tue, 16 October 2007 05:10 Go to previous messageGo to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
Yes David I See All But My Problem With
Ftree.Set_Tree_Node_Property(htree,:SYSTEM.TRIGGER_NODE,Ftree.NODE_ICON,'open');
dosen't solved.

if you see on help developer 6i or 9i,sample code for change node icon is similer to above code,i tried on but that's cuse similer erorr code. Embarassed

i work with developer 6i

[Updated on: Tue, 16 October 2007 05:11]

Report message to a moderator

Re: can help me for Set_Tree_Node_Property [message #275109 is a reply to message #274073] Thu, 18 October 2007 05:52 Go to previous messageGo to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
Anybody Can Help me?
icon10.gif  Re: can help me for Set_Tree_Node_Property [message #275182 is a reply to message #274073] Thu, 18 October 2007 12:47 Go to previous messageGo to next message
ZZTOP2005
Messages: 31
Registered: August 2007
Member
Finally I found the roblem
':SYSTEM.TRIGGER_NODE' Cuse this Problem.When I change it by below source code,My problem solved.

in trigger WHEN-TREE-NODE-SELECTED write This code for change icone node on run time mode:

Declare
htree ITEM;
Find_node Ftree.NODE;
Node_LBL varchar2(1000);
Begin
htree := FIND_ITEM('BLOCK_TREE.TREE');
Node_LBL := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_LABEL);
Find_node := Ftree.Find_Tree_Node(htree, Node_LBL1, Ftree.FIND_NEXT,
Ftree.NODE_LABEL, Ftree.ROOT_NODE, Ftree.ROOT_NODE);

Ftree.Set_Tree_Node_Property(htree, Find_node , Ftree.NODE_ICON, 'save');
End;


Cool
Re: can help me for Set_Tree_Node_Property [message #275238 is a reply to message #275182] Thu, 18 October 2007 22:54 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Thank you for posting this information.

David
Previous Topic: hierarchy tree
Next Topic: how can i add icons on tree
Goto Forum:
  


Current Time: Sun Dec 11 02:16:05 CST 2016

Total time taken to generate the page: 0.07804 seconds