Home » Developer & Programmer » Forms » disable field
disable field [message #83112] Fri, 08 August 2003 00:02 Go to next message
Mubeen.
Messages: 37
Registered: May 2003
Member
Hi All,

I have two text fields 'a' an 'b',I am selecting values for text field 'a'through an lov'my_lov',

what I want is ,when i select the values from the lov for the text field 'a'after the value enters the text field it should get disabled ,can anyone suggest how to do that.

a simple example by taking above elements could be easier for understanding.

i donno which trigger to use.

Thanx in advance.

mubeen.
Re: disable field [message #83114 is a reply to message #83112] Fri, 08 August 2003 02:55 Go to previous messageGo to next message
Indrani
Messages: 14
Registered: June 2003
Junior Member
hi,
You can try like the following:
write key-next-item trigger for item 'a'
and write there :
if lov_call and :a is not null then
go_item('b');
set_item_property('blockname.a',enabled,property_off);
end if;
And
write a when-new-item-instance trigger for item 'a' and
write there :
set_item_property('blockname.a',enabled,property_on);
set_item_property('blockname.a',navigable,property_on);
Hope u will get ur desired output.
Re: disable field [message #83115 is a reply to message #83112] Fri, 08 August 2003 03:08 Go to previous message
Shailender Mehta
Messages: 49
Registered: June 2003
Member
You can try the following :-

Trigger : KEY-LISTVAL ( On Item 'A')
--------------------------------------

Set_Item_Property ('Block3.A', insert_allowed, property_true);

DECLARE
a_value_chosen BOOLEAN;
BEGIN
a_value_chosen := Show_Lov('Lov_on_col_a');
IF NOT a_value_chosen THEN
Message('You have not selected a value.');
Set_Item_Property ('Block3.A', insert_allowed,
property_true);
Else
Set_Item_Property ('Block3.A', insert_allowed,
property_false);
Next_Item;
End If;
End;
Previous Topic: How to show system Clock in your form.
Next Topic: Tracking changes in Oracle Designer 6i
Goto Forum:
  


Current Time: Tue Apr 23 22:24:47 CDT 2024