Hi,
I am looking for a way, in lotusscript, to check from an agent if some docs are already in EditMode.
I try to use IsUIDocOpen property. It seems to work only with docs that I have opened myself and not with docs opened by someonelse from the network.
In addition, I would like to get the name of the user that is in Editmode on the doc.
Is it possible ?
Thanks a lot for your help.
Luc
Set collection = db.AllDocuments
Set curdoc = collection.GetFirstDocument()
While Not(curdoc Is Nothing)
If curdoc.IsUIDocOpen Then
'my code
Subject: I think you’ll need document locking
With document locking enabled you could use the NotesDocument.Lockholders to retrieve the information you need
Subject: RE: I think you’ll need document locking
Yes!Thanks Nico, I just found it and tried it.
Exactly what I need.
Strange thing for me :
My database was not with the property locking enabled. Nevertheless, during some test, I already get message from Lotus that indicate that someoneelse has already open the doc.
It sounds like the lock process run even if this property is not cheked.
An idea ?
Anyway, thanks a lot for your fast answer.
Luc
Subject: RE: I think you’ll need document locking
Are you running your application/DB in a cluster? If so, someone else might have opened the doc on the other server. My experience: don’t use clusters in combination with server-based document-locking - nothing but trouble!
Buzzy