Monday, 24 May 2010

Save Changes before Exiting

One of my customers wants to replace some Forms applications using APEX. One of the critical issues was the possibility to warn the user before exiting the existing form (switching tabs, closing browser window or tab or simply using the back button). In this example in my Demo Application I created a proof of concept using some older threads and demos. The solution is quite neat since there is almost no hardcoding and it works in every case while trying to move from the form. One of the important things was how to get that button for saving changes work, so it doesn't trigger the alert but does save the changes.


4 comments:

Mark Lancaster said...

Nicely done Denes!

komeny said...

Hello!
Pretty good idea, but it doesn't work for me for textareas, radios, etc. textfields with apex 4.0 (No effect)
Only for choice lists. What can be the problem? Many Thanks!!

Bobber said...

Hi Denes -
I encountered the same issues as "sdf". I was able to implement your solution to saving changes before exiting, but I can only get it to work with textfields, select lists and date pickers. It won't work with textareas, or radio groups. I'm using Apex 4.0.1. Any suggestions?
Bob Heider

Denes Kubicek said...

Bob,

You should use the new plugin for the version 4 of APEX.

Denes