Detecting changes in the back end document

I have a requirement from a client as follows.

They want to be able to detect a change in the back end document when a document is open in read mode.

For instance if I have a document open in read only mode.

Somebody else opens that document and saves/closes it.

If I put that document that I have open into edit mode they want a message to pop up stating that somebody has saved this document and that I must close and reopen the document to get the new changes.

What I have tried:

On querymode change I tried to get the back end doc through get documentbyUNID to check the modified date. Did not work, it only returned a backend copy of what I had in the UI

I tried the modifiedwhensaved property of NotesUIDoc…Did not work.

I tried to set a field on the document to @now when saved then compare that date with the UIDoc last modified. Again it only returns a backend doc of the UIdoc so no go.

Any ideas.

Subject: Detecting changes in the back end document

It is a tough thing to do. Perhaps you could use document locking, and have the user who is opening the document trigger a message. The reason this is so difficult is that there is not really any “read mode” to the Notes/Domino engine, there is just in-memory and on-disk. When you open a document in read mode, it copies the on-disk note into an in-memory note. At that point, you could (and I often do), make changes to the document through a formula language or API extension, then save it, so there is no guarantee that the document is really just in “read mode”.

Subject: Detecting changes in the back end document

No solution, but i have a similar problem posted some minutes ago.