Home » Developer & Programmer » Forms » how textbox disable and accept only from lov
how textbox disable and accept only from lov [message #195361] |
Thu, 28 September 2006 04:15  |
mfa786
Messages: 210 Registered: February 2006 Location: karachi
|
Senior Member |
|
|
hi master
sir
my user some time feed rough data i want to restric that he only select value from lov not give from key board mu text bot disable and accept only lov
please give me idea how textbox disable and accept only from lov
some body give me this idea
=======
use a text-item
link in the item your lov and check "Validate from List" to Yes
set "Enabled" to Yes
set "Insert Allowed" to No
set "Update Allowed" to No
=========
i set this property
Validate from List= Yes
Enabled= Yes
Insert Allowed= No
Update Allowed= No
but my textbox total enable = no
when i press F9 system not show the lov
no curser inter in text box
please give me idea how only lov work
thanking you
aamir
[Updated on: Fri, 29 September 2006 01:11] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: how textbox disable and accept only from lov [message #195902 is a reply to message #195770] |
Tue, 03 October 2006 01:54   |
raizen_underground
Messages: 28 Registered: September 2006 Location: Manila, Phillipines
|
Junior Member |
|
|
Try this one....
If you already have ur LOV and and the lookup return value is in the correct item.....just set ur text item property
insert allowed = no
update allowed = no
then create trigger in the text item
when-mouse-click
set_item_property('block.item',insert_allowed, property_true);
set_item_property('block.item',update_allowed, property_true);
if show_lov('LOV name') then
null;
end if;
set_item_property('block.item',insert_allowed, property_false);
set_item_property('block.item',update_allowed, property_false);
I've already code this and it works...
just reply if there is an error with this code...
raizen....
|
|
|
|
Goto Forum:
Current Time: Fri May 02 11:16:10 CDT 2025
|