Skip to Main Content

APEX

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!

Apex equivalent of pre-insert / pre-update forms trigger?

Niels IHMar 14 2019 — edited Mar 15 2019

Hello,

In forms you can have some pl/sql code that does some stuff on the database before a record is inserted/updated.

In this pl/sql you can have user interaction with alert- / confirmation dialogs like :  "This research type is no longer valid. Do you wish to create a new research anyway?"  <yes> <no> <cancel>

The user clicks <yes> , the pl/sql processing continues, creates a new research and when it completes succesfully the insert/update of the record(s) also complete.

When the user clicks <no>, the new research is not created but the insert/update action of the record(s) complete.

When the user clicks <cancel>, all processing stops.

I'm having a hard time to build this functionality in Apex with the interactive grid.  You can build validations- and you can have processing with pl/sql on the server but you cannot have user interactions during validations or processing like a confirmation dialog as far as i know.

Making an ajax call before the submit action of the interactive grid has drawbacks like what if the  ajax process completes and data is commited to the database but the following IG automatic row processing or a validation on the record subsequently fails?

What would be the best way to do something like this in Apex with the interactive grid?

Thanks!

Comments
Post Details
Added on Mar 14 2019
2 comments
1,144 views