0

I want to check user while closing xpage in XPiNC and web browser before closing and document e.g. displaying message do you want to save this document or not?

or other checks on different stages of workflow.

Kindly guide me the way forward to get this event in xpages.

Thanks, Qaiser

Qaiser Abbas
  • 113
  • 8
  • Does this help you http://stackoverflow.com/a/10428881/2065611 ? – Knut Herrmann Apr 22 '16 at 09:02
  • Possible duplicate of [Is there any way to trigger the code behind enableModifiedFlag from CCSJ or SSJS?](http://stackoverflow.com/questions/10417149/is-there-any-way-to-trigger-the-code-behind-enablemodifiedflag-from-ccsj-or-ssjs) – stwissel Apr 22 '16 at 09:31
  • In case the approach with `XSP._isDirty()` is not what you are looking for you may want to have a look at the `onbeforeunload` event in CSJS: http://www.w3schools.com/jsref/event_onbeforeunload.asp . The default "Are you sure you want to leave this page?" message in the confirmation dialog can be customized: http://stackoverflow.com/questions/276660/how-can-i-override-the-onbeforeunload-dialog-and-replace-it-with-my-own – xpages-noob Apr 22 '16 at 09:40
  • Thanks everybody, let me go through these answers and get back to you on this. – Qaiser Abbas Apr 26 '16 at 09:21

0 Answers0