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!

prompt user to save when different tab or breadcrumb clicked

4718Jan 15 2009 — edited Jan 16 2009
Hello,

I have an application that has one level of tabs and also uses breadcrumbs. On each tabbed page there are forms that can be submitted via a 'save' button.

However, the users now want a prompt (javascript confirm dialog will suffice) to be displayed if the user clicks on a different tab or parent breadcrumb entry to remind them if they want to save the form or not, if the save button is not used.

How can you override the doSubmit upon clicking the different tab so that this can be asked, which then causes a custom process to be executed to do the save, followed by the normal onward navigation?

Breadcrumbs don't use doSubmit so I'm not even sure if this can be intercepted?

As an emergency workaround (that is if it cannot easily be done and I cannot persuade the users to relent), all I can think of it to replace the tabs altogether with custom buttons to act instead of the tabs, which are used to navigate between pages - that way we can hook regular javascript and page submit processes into it. Not ideal...

Cheers,
John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2009
Added on Jan 15 2009
5 comments
574 views