How to know if some document is locked

Hi!

Please can anyone tell me if there are any way with lotus script or @formula to check if a specified document is locked?

My database have Allow document locking enable.

Thanks

Regards

Subject: How to know if some document is locked.

I have implemented this in one of my databases. You can check for the existence of a $Writers field. If it exists, then the document is locked. To show who is locking it, you can use: @Name([CN];$Writers).

Chris Whisonant

http://cwhisonant.blogspot.com

Subject: Look at LockHolders of NotesDocument class

If you want to see a list of all “locked” documents, you can create a view for all documents that contains $WRITERS or $WRITERSDATE - these are the fields used by the document locking routines.

I put a view like this in every database where I’ve turned on locking and added an agent that allows me (or db manager) to unlock any locked documents as necessary.

Subject: RE: Look at LockHolders of NotesDocument class

Hi Chuck Floyd

Thanks for you replay! I think it will solve my problem.

Regards

Subject: RE: Look at LockHolders of NotesDocument class

  • Thanks Chuck! I knew there had to be a simple way to do this.