I have a rich text field with several attachments in it. The attachments are created using the EMBED_ATTACHMENT method. Subsequently the user double clicks the attachment to launch it in edit mode and make changes.
Is there any way of forcing a prompt when they return to the Notes document to offer to save their attachment changes back to the Notes document? Notes recognises that a change has been made to the attachment when the user closes the document, so is there any way of getting a handle on this?
Subject: Is there a way of forcing a save to the Notes document after an attachment has been edited and return is passed back to the notes document
Not from the high-level languages; you need to be at the C API level to be able to check the “IsDirty” flag on the UI document (something Notes sets automatically whenever a user makes a change to the document). It’s the same flag the Notes client uses to pop up the save options dialog on document close. Since the flag should be set when the attachment data is returned, you should have an automatic “hook” to it. (You may have to monitor the window for active foreground status as well.) Unfortunately, I am no longer competent to write the code you need, but I hope that simply being able to tell you what to search for may lead to a more fruitful search.