hm..geht das nicht auch etwas einfacher, statt das probelmatische Locking?
Anhand der notesdocument save Methode, kann man das doch bestimmt rausfinden...einfach Test auf erfolgreichen Save...
Help:
flag = notesDocument.Save( force, createResponse [ , markRead ])
Parameters
force
Boolean. If True, the document is saved even if someone else edits and saves the document while the script is running. The last version of the document that was saved wins; the earlier version is discarded.
If False, and someone else edits the document while the script is running, the createResponse argument determines what happens.
createResponse
Boolean. If True, the current document becomes a response to the original document (this is what the replicator does when there's a replication conflict). If False, the save is canceled. If the force parameter is True, the createResponse parameter has no effect.
markRead
Boolean. If True, the document is marked as read. If False (default), the document is not marked as read.
Return value
True indicates that the document was successfully saved
False indicates that the document was not saved
also?
Force Param auf False
createResponse Param auf False
und ordnungshalber
markRead auf False