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..
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..