Home » Developer & Programmer » Forms » automatic display of LOV
automatic display of LOV [message #82371] Thu, 22 May 2003 08:44 Go to next message
Raj
Messages: 411
Registered: November 1998
Senior Member
I have 2 LOV's (say LOV1 and LOV2) in 2 different Blocks (say BLOCK1 and BLOCK2) in the same tab. I want to display LOV2 as soon as the user hits the 'OK' button in LOV1. (This will save them a key-stroke). Can anyone tell me how to do this? Thanks in advance.
Re: automatic display of LOV [message #82372 is a reply to message #82371] Thu, 22 May 2003 09:16 Go to previous messageGo to next message
Ani
Messages: 56
Registered: November 2000
Member
Hi,
try this.In key-next of the text item
enter;
if form_success then
declare
a boolean;
b boolean;
begin
if :txt1 is not null then
a:=show_lov('lov1');
if not a then
message('no records in LOV1');
raise form_trigger_failure;
end if;
--On success of LOV1 the next lov is displayed
b:=show_lov('lov2');
end if;
end;
end if;
The above code will help u 2 to show both the lov's. i.e as soon as u click enter in the text item 1st lov will b displayed. On ok,it will display lov2.
Try this and get back to me. All the best.
Bye
Ani
Re: automatic display of LOV [message #82374 is a reply to message #82372] Thu, 22 May 2003 09:56 Go to previous message
Raj
Messages: 411
Registered: November 1998
Senior Member
Thanks ani! I followed your insturctions and it worked. Thanks for the help.
-raj
Previous Topic: Automatic Change in Screen Resolution
Next Topic: forms6i insert problem
Goto Forum:
  


Current Time: Tue Jul 02 01:53:30 CDT 2024