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!

Warning type validation

partlycloudyJul 17 2013

APEX 4.2.2

http://oraclequirks.blogspot.com/2009/08/how-to-let-user-override-apex.html  talks about a common use case that is not easy to implement in APEX i.e. a warning-type validation that brings some data condition to the user's attention upon page submit and provides the option to acknowledge and continue with page processing.

In 4.2.2, the most declarative way I could think of to achieve this was with a Dynamic Action as follows

1. DA fires when page submit button is clicked

2a. (Optional) Set Value action that queries server, using page-items if necessary

2b. Execute Javascript Code -

if (some condition referring to values set in 2a) apex.confirm('message','BUTTON_NAME');

else apex.submit('BUTTON_NAME');

Is this the best way to this sort of thing? Any other ideas?

Thanks

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 14 2013
Added on Jul 17 2013
0 comments
253 views