filtering in listbox [message #128559] |
Tue, 19 July 2005 07:12 |
priyravi
Messages: 41 Registered: July 2005
|
Member |
|
|
Hi,
I have set of items in listbox. For eg,
abhisheke
abinav
abirami
arjun
arun
mini
meena
meenu
venkat
vinay
If I press 'a', names starting with 'a' should only be displayed in that list box[previously all names were there]. if I type 'ab' , names starting with 'ab' shd be displayed. If i type 'abi', abinav and abirami should be displayed. if i click back space, respective change shd happen. if i clear all the characters which i typed, then all the names should be there in that listbox,
If there any way for doing this? Pl help
Regards
Priya
|
|
|
|
Re: filtering in listbox [message #128638 is a reply to message #128590] |
Tue, 19 July 2005 23:53 |
priyravi
Messages: 41 Registered: July 2005
|
Member |
|
|
Thanks for ur reply.
Actually, if I use LOV, separate window with find/ok/cancel button appears. I dont want that. I want the list alone. is there any way to remove those things?? If so, i can go for that.
Priya
|
|
|
|
Re: filtering in listbox [message #128671 is a reply to message #128648] |
Wed, 20 July 2005 01:46 |
priyravi
Messages: 41 Registered: July 2005
|
Member |
|
|
Hi,
Pbm solved. To those who are interested in soln, i am attaching the code.
Following code works as per my rqmt.
--define cursor
select c_name is select ename from emp where ename like
:global.clicked_value || '%';
myindex number(2):=0;
begin
clear_list('list name');
for i in c_name loop
myindex:=myindex+1;
add_list_element('ur list name',myindex,i.ename,i.ename);
end loop;
end;
but it is working if v use global var.
Regards,
Priya
|
|
|