How handle Oracle Form own generated Error [message #336475] |
Sun, 27 July 2008 12:29 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Shaheer
Messages: 50 Registered: June 2008 Location: Pakistan
|
Member |
|
|
Respected Sir,
Please see attached file.
In my form one field that takes five digits. for example (00411) and i set its format mask (99-999). When i put less then 5 digits in the field, Oracle Form generate its own Error i.e. FRM-40209 Field must be of Form 99"-"999. I also declare my own alert for this error. but First Oracle Form Display its own Error and then my Alert display.
i want to display my own alert instead of Oracle Form own generated Error. please post the solution.
-
Attachment: error.GIF
(Size: 65.58KB, Downloaded 1313 times)
[Updated on: Sun, 27 July 2008 12:36] Report message to a moderator
|
|
|
|
Re: How handle Oracle Form own generated Error [message #336914 is a reply to message #336858] |
Tue, 29 July 2008 06:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Shaheer
Messages: 50 Registered: June 2008 Location: Pakistan
|
Member |
|
|
1) No Sir, i call alert from KEY_NEXT_ITEM trigger. In this trigger i use if condition
if (length(:blockname.fieldname) = 5 )then
go_item('fieldname');
else
i call my own alert;
end if;
2) No Sir, i cannot define No_ERROR Trigger.
|
|
|
|
|
|
|
Re: How handle Oracle Form own generated Error [message #336974 is a reply to message #336945] |
Tue, 29 July 2008 08:45 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/107256.jpg) |
sasipalarivattom
Messages: 121 Registered: June 2007 Location: Cochin ( INDIA )
|
Senior Member |
|
|
Hi littlefoot,
FRM 40209 error is
"The value that you entered did not match the format mask on the field."
Here Shaheer just need to set error report for Account code only.
That's why i wote like that.
For example,
there same error will come if user enter some character in a number type field.
so we have to check in which field the error occurred and ned to show appropreate messages.
That's why the code like this.
here i am checking the prompt of the item.
i tried with the item name like this
if :system.trigger_item = :BLOCK_NAME.ITEMNAME then
message(' Error ');
end if;
but sometimes it doesn't work. that's why i use the prompt name.
Regards
Sasi...
[Updated on: Tue, 29 July 2008 08:51] Report message to a moderator
|
|
|
|
|
|
|
|