Link to home
Start Free TrialLog in
Avatar of sbaek
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 :~(
Avatar of ghassan99
ghassan99

Create a hidde field on the doc and name it 'SaveOptions' and set its default value to 1.

-Gus
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.
ASKER CERTIFIED SOLUTION
Avatar of mchampou
mchampou

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Doc.SaveOptions = 0  where "doc" is the "Background Class" document NOT the NotesUIDocument then you "close" the UI Document.