Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help in Oracle Forms Tree

Status
Not open for further replies.

stana1

Programmer
Feb 24, 2010
1
0
0
US
thread259-694474

I need to write a program to search on tree and after it select the first occurance of the search string and then i need to use next and previous buttons to find the more occurances of the search string.

I am using the following code for this:

In the search button:

declare
htree ITEM;
Find_node FTREE.NODE;
Begin

htree := find_item('abc_tree.abc_tree');

find_node := ftree.find_tree_node(htree,'%'||:control.search_tree||'%',
ftree.find_next,
ftree.node_label,
ftree.root_node,
ftree.root_node);
IF NOT ftree.id_null(find_node)
THEN
ftree.set_tree_selection( htree,
find_node,
Ftree.SELECT_ON);
END IF;


END;

This code works fine and it will highlight the first occurance of my search string.

Now i need to write the code for previous and next buttons to highlight the next occurance or previous occurance of the search string.

Could any one can help me out..

Thanks in advance..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top