This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Feb 18, 2011, 12:29 PM
2 Posts

XPiNC like queryClose behaviour - Possible it?

  • Category: Other Domino Designer Tooling
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: XPiNC
  • Replies: 7
Hi! 
 
We have a customer which uses Lotus Notes. He doesn't want to work with Domino applications via browser. We're trying to create an xPage application which would work in Lotus Notes. But we've faced a problem: if a user closes application tab or Lotus Notes in whole, it's impossible to catch this event in xPage, likewise Queryclose in lotusScript (or we just have not found how to do it). Accordingly, we can't show a message like "Save changes? Yes | No | Cancel" if user made some data changes. Does this problem have a solution any possible way? 
 
Thank you for advance for your valuable advises. 
Feb 18, 2011, 1:09 PM
22 Posts
Re: XPiNC like queryClose behaviour - Possible it?
Is it this you are looking for ? http://www.stevecastledine.com/sc.nsf/dx/07112008092834AMSCAD5L.htm?opendocument&comments
Feb 18, 2011, 1:44 PM
2 Posts
Re: XPiNC like queryClose behaviour - Possible it?
Yes, i saw it. But this is analog of querySave, not queryClose. In queryClose i can to prohibit close window. Оr do something before you save the document, and after a decision on the preservation of the document and permission to close the window. 
 
Sorry for my Google-English .
Feb 18, 2011, 2:20 PM
586 Posts
Re: XPiNC like queryClose behaviour - Possible it?
 There is a way to add a "dirty listener".  so if they change a field but don't save it you'll get a popup telling you before you exit.
 
Is that what you're looking for? 
 
I've used it once in XPiNC - but I don't have that code handy.  I think there's something in All Properties...  There's also a mention of it on Stephan's blog.. 
 
http://www.wissel.net/blog/d6plinks/SHWL-878B9D 
 
 
Feb 18, 2011, 2:59 PM
40 Posts
Re: XPiNC like queryClose behaviour - Possible it?
 I think the problem with the dirty listener is if you hit escape or close the tab, the XPiNC browser doesn't fire the window's onClose event, which prevents the dirtyListener from executing.  This may have to be run up the ladder to the XPages team.
Feb 18, 2011, 4:22 PM
586 Posts
Re: XPiNC like queryClose behaviour - Possible it?
 hmmm.  I thought we could trap for that now.
Feb 18, 2011, 6:33 PM
40 Posts
Re: XPiNC like queryClose behaviour - Possible it?
 I tested today with 8.5.x and wasn't able to get the dirty listener to fire... although I used a scoped variable, now I wonder if that might have been an issue.  Will revisit shortly.
May 13, 2011, 12:54 PM
1 Posts
Re: XPiNC like queryClose behaviour - Possible it?
Hi!
 
I have  exactly the same problem. Has anyone found a solution for the problem in the meantime?
 
Thanks,

Rainer

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal