Hi,I need to prompt the user when he is closing by pressing ‘Esc’ or clicking on the ‘cross’ to close the document.
He needs to have the message ‘to save the document’…what i did is i have a field ‘SaveOptions’ already there in the document.In the queryclose event i put ‘@SetField(“SaveOptions”;“1”)’,still its not prompting the person,it just closes…when i checked the value of the Field ‘SaveOptions’ the field’s value indeed has changed form zero to one!!then why hasnt it prompted me??
Please check if u r trying to save the document without making any changes. In that case, the user will never be prompted for saving the document when he tries to close the document even if SaveOptions is set to “1”.
The SaveOptions field lets you not prompt the user whether to save; you’re answering the question for them. The way to always prompt the user is to not have SaveOptions, and to modify some field after the document opens. But not in Postopen or Onload.
Just adding to Andre Guirard’s comments, Let me tell a few points about “SaveOptions”:
a. By default notes prompts a user, whether to save the edits or not ? if he edits a document and hits ESC key or clicks the CrossMark(Close Icon) in the form to close it. So where is the need for “SaveOption” field?
b. SaveOptions field is only used to force a document to save/not save, without asking/prompting the user to save the document !
c. So i think, there is no need in using the “SaveOptions” field, for your requirement.
Subject: RE: Field SaveOptions is NOT number field
Hi Harkpabst,
I know that pretty well, but while I tried it using values like “1” or “0” in Lotus Domino 7.0.0, it didn’t work properly; but it was ok with values 1 or 0 with everything else remained same.
Subject: RE: Field SaveOptions is NOT number field
Without knowing your code, I can’t give an explanation.
But the fact that I never had any problems using SaveOptions in the documented way in any version from 4.5.5 to 7.0.3 indicates to me, that you most probably became a victim of some side effect caused by other parts of your (or your co-workers) code.