I need to save the document without “Do you want to save …” question … when I close the form with the “x” button on the TAB …
I use this code in Queryclose event of the form:
Sub Queryclose(Source As Notesuidocument, Continue As Variant)
If Source.EditMode = True Then
Call Source.Save
End If
End Sub
I have also SaveOptions filed set to 0. If SaveOptions=0, the document is not saved (even if there is a code in Queryclose event), in case SaveOptions=1, i receive the question. If I debug the code, i can see, that the question is asked before the code reaches the Queryclose event!
Subject: I need to save the document without “Do you want to save …” question
Notes will automatically ask that question if it considers the front end document (Source) dirty. It has been my experience that if you save the document by calling notesuidocument.save Notes still considers the document dirty but if you call @Command([FileSave]) it does not. Use @Command([FileSave]) in your Save button.
If you need to know if the document actually saved or not you can do