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