Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle form error using RAISE FORM_TRIGGER_FAILURE is bypassed and data is getting saved without any

848964Jul 4 2016 — edited Jul 9 2016

Hi,

I have a form requirement as below where one of the validation is - for same combination of Operation, Comp stream, product code and end date being null for both, the error message to be displayed as below and raise trigger failure.

form.jpg

But this error is actually not retained as soon as I click on OK and also allows me to save the record without any issue. My expected resulted is to stop completely once that error is encountered.

The code which I have written is :

code.jpg

Just note that here we are handling a scenario where 1 row is already created in table and while second is going to be created then the comparison is between previous saved data plus current unsaved data.

Also if you could assist in a scenario where user enters first record and then enter second record. Those are not saved. Howz that to be handled.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2016
Added on Jul 4 2016
15 comments
24,968 views