validate text item in a database block [message #81884] |
Sat, 29 March 2003 08:48 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Victoria
Messages: 152 Registered: July 2002
|
Senior Member |
|
|
Hi,
I have a text item in a database block displaying 10 rows in my form.I need to validate this text box value to contain 'Y' or 'N'.
I can`t write when -validate or post text trigger for this since it will fire only for first row.I have been told not to use when validate or new instance triggers and timer triggers.So how to validate this text box....
otherthan creating an Lov...
Please give me some solutions..
Thanks
~V~
|
|
|
|
|
Re: validate text item in a database block [message #81924 is a reply to message #81898] |
Wed, 02 April 2003 03:47 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
utsav
Messages: 94 Registered: March 2003
|
Member |
|
|
Hi well since u have not mentioned post change trigger so i am going to use that.
In the post-change trigger write
if :itemvalue <>'Y' or :itemvalue <>'N'
then
raise form_trigger_failure;
end if;
end;
I hope this solves u r problem.
Utsav.
|
|
|