What runs before the Query Close in a Form when the following line of code is used in Lotus Script???
Call uidoc.Fieldsettext(“SaveOptions”,“0”)
Call uidoc.Close(True)
The form in question is a Message/Memo form.
Would appreciate someone setting me straight as even though I’ve searched high and low I can’t find out what is executing prior to the Query Close.
Subject: Queryclose on a subform?
perhaps if you said more about why you need to know…?
Subject: Query Close ???
Because when we close the form using the code specified in the first post, it still asks if we want to save the form, even though we have blatently told the system we don’t want to. I have tried finding where this YESNOCANCEL prompt is generated in Common and CoreEmailClasses Script Libraries but cannot understand nor find where this blooming message is being generated. It is being generated prior to the Query Close routine in the form.
Subject: Important details
You’re in the Notes mail application. The form you’re working with is one that Lotus supplies. You haven’t said which one. You haven’t said what prompt you’re getting. The prompt is probably built into the client code, which is why you can’t find it when you search the mail file design. I suspect you need to look at MailOptions field. I’m not sure using the front-end method (FieldSetText) is the best way to assign these, as it assumes the field exists in the UI and is settable in the UI. Use the NotesDocument methods instead.
Subject: re. Important Details - Thanks Andre
Hi Andre,Thanks for the reply, but, without getting too heavy:
-
I did say which form in my first post and I quote “The form in question is a Message/Memo form.” Maybe I should have said THE Message/Memo form.
-
The prompt I am getting is the "Do you want to save your changes? Yes/No/Cancel hence me saying the “YESNOCANCEL prompt” in my second post.
-
I know what you mean and have tried both the front end and back end setting of the SaveOptions field, but both don’t have the desired effect of stopping the prompt above.
-
Why would the MailOptions field be important as I am not trying to send it, but just save it after processing the contents into one of our internal systems.
-
The code worked (as in we did not get asked to save the record) from Versions 4.5 thru 8.0.2, but since version 8.5 we get this message. What the heck changed in the base design of the Message/Memo form between 8.0.2 and 8.5???
Would appreciate any help you can give or any light you can shine onto this issue.