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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

apex_error or how to stop multiple actions in DynamicAations when error occurs

Hallo everyone, I have the following need.

Press a button which does the following
1. make some complex checks in the DB
2. if errors occur than show all the messages
3. if everything was ok than change some data

Therefore I created a DynamicAction with multiple actions.

Now for step 1 I'm using a page process from the first action in the DA. It calls a DB procedure. And in it I'm using apex_error to display any error inline in Apex. This works fine.

If there is an error the DA should stop.
But if everything is fine than the DA should continue.

My challenge now is that I like to use apex_error. Because it is very simple. But as far as I know it only works if I submit the page. Right? Therefore I submit the page calling a page process.
But when an eror occurs my DA does not recognize that an error occured and it continues to step 3.
I was trying to set a page item from the page process in step 1 to mark if the page process was successfull. But this is not working. I think I can't set a page item from the page process, right? And if I switch to e.g. an Ajax call the error messages are not shown. Unless I handle them myself like e.g. read the error stack and htp.p them to the Ajax call. Or something like that.

So what is the simplest solution for this?

Kind Regards, Peter

This post has been answered by fac586 on Mar 25 2025
Jump to Answer

Comments

Processing

Post Details

Added 4 days ago
2 comments
37 views