How do i get rid of ‘do you want to save changes’ msg while closing form? i am using client application
Subject: How to get rid of Dirty msg?
Save it before you close, assuming you want to save it.
If you’re using @commands you would do:
@if( @Command([FileSave]); @Command([FileCloseWindow]) );
If you do not want to save it then set SaveOptions equal to 0 and when you close it, it won’t prompt you and the changes will be lost.
Again with @commands
Field SaveOptions := “0”;
@Command([FileCloseWindow]);
Subject: How to get rid of Dirty msg?
Dim doc As NotesDocumentSet doc = uidoc.Document
doc.SaveOptions = “0”
Subject: RE: How to get rid of Dirty msg?
Just to add to that.
If you do this you will loose any changes in the UIDocument. So if you plan to update the UI with information you should do after executing doc.SaveOptions
The code snippet was taken from here (near end of page)
Subject: RE: How to get rid of Dirty msg?
Thanks a lot for your quick response!! doc.SaveOptions = 0 worked out to be well.