I haven't had a need until today, but now I REALLY have a need!
I have a workflow where multiple users pluck records out of a list, one at a time for processing. When a user starts to work with a record I update a flag on the record to indicate that it's "in use" so that any other users that try to process it will be blocked.
Now, this works fine and as long as the user uses my processing SuiteLet as designed things are cool, the status is either set to complete or reverted to "ready" (in the case of a cancellation).
BUT... if they close their browser or otherwise navigate away from the SuiteLet the record is orphaned until my scheduled hourly janitor script comes along and tidies up the mess.
This works, but it would be better to have the aborted record back in the processing pool asap. The only way to get close to this is to handle the onUnload event on the client and set the status accordingly.
Long story short... we need a client "close" event. I will enter and post the ER here, hopefully some of you will be interested and we can get this thing implemented sooner rather than later.
OH!... if anyone has any ideas for workarounds let me know. I thought about a DOM hack to attach a handler to the document (or is it the window object?) either way, I don't like DOM hacks. Any other suggestions welcome.