Domino on Linux/Unix, Troubleshooting, Best Practices, Tips and more ...


Daniel Nashed


Notes UIDoc reopen without saving the underlying document

Daniel Nashed  23 February 2023 21:48:20

I am working on a form that has embedded passthru HTML to display in-line base64 encoded image data from a text field (don't ask why ..).
The image did not always display immediately. So I tried all kind of refresh and reload options without any luck.

Until I found an example in the Notes help which does exactly what I need.
I tried to tweak and simplify it without any good result.
It only works with this exact sequence of events for me.

Now let the crow wisdom find an easier, but still reliable way.

I am pretty happy with this already.
  • The SaveOptions = "0" force the UIDoc not to ask to be saved
  • Then we are closing the UI doc.
  • Creating a new instance of it
  • Delete the previous UI doc
  • Finally remove the SaveOptions item from the uidoc.document ...

Every attempt to simplify it, failed. But this is great to have and works like a charm.

-- Daniel

        doc.SaveOptions = "0"
        Call uidoc.Close (True)
        Set uidoc_new = workspace.EditDocument (True, doc, , , , True)
        Delete uidoc
        Call uidoc_new.Document.RemoveItem ("SaveOptions")



    • [HCL Domino]
    • [Domino on Linux]
    • [Nash!Com]
    • [Daniel Nashed]