sbaek
asked on
Closing a notesuidoc w/o save prompt.
Hi
When I try to close a notesuidoc it prompts the user if they want to save the doc before it is closed even though I save the doc in the script. Is there a way around notes giving the user this prompt? Sorry I only have 18 points to give :~(
When I try to close a notesuidoc it prompts the user if they want to save the doc before it is closed even though I save the doc in the script. Is there a way around notes giving the user this prompt? Sorry I only have 18 points to give :~(
What Gus has said works assuming you always want to save the document. But if you only want to save it conditionally, then your script needs to save the document. Without knowing what your script is doing, it is hard to say why it is not saving the document properly. One suggestion I can make though is that if you are using @commands then try using @postedcommand for the file save.
Zaphod.
Zaphod.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Doc.SaveOptions = 0 where "doc" is the "Background Class" document NOT the NotesUIDocument then you "close" the UI Document.
-Gus