Closing UIDOC without promting for save

I have a document in which i add document links in one of its rich text field which is currently hidden by using notesdocument.richtextitem and its methods.then when i close the document if uidoc.save is called it closes properly but rich text updation is lost

if i close the document without calling uidoc.save it propmts for “whether to save or not”.

I would like to do save with notesdocuemnt.save and then uidoc.close without such prompt.

Subject: Closing UIDOC without promting for save

try calling uidoc.Reload( ) before uidoc.save

this should pull items from the backend doc into the uidoc. failing that, after the the doc.save, call uidoc.fieldSetText(“SaveOptions”, “0”) before closing it (you’ll need to add the saveoptions field to the form also

HTH

kiers

Subject: RE: Closing UIDOC without promting for save

TAHNKYOU SAVOPTIONS METHOD WORKEDRegards

Manu

Subject: Closing UIDOC without promting for save

Try and create a “computed for display” text field, named “SaveOptions” containing “0” to prevent the uidoc from asking to save…

Subject: RE: Closing UIDOC without promting for save

thank you saveoptions method worked