Document Locking

I’ve read the document locking chapter in the Notes 6 manual but am trying to figure out how to do two simple things:

  1. In a database where everyone is an editor (don’t ask), I want only one person to be able to edit a document at a time. If someone else is already editing that document, I want a message to display when a second person tries to edit the same document. The message should contain the name of the person currently editing the document.

  2. I want to write an agent to run every night to unlock all documents to correct invalid locks that might remain from high-level managers who shut their PC’s down at night by flipping the power switch rather than doing an orderly shut down (don’t ask).

Thanks

Subject: Document Locking - do you work here???

Subject: Document Locking

  1. In a database where everyone is an editor (don’t ask), I want only one person to be able to edit a document at a time. If someone else is already editing that document, I want a message to display when a second person tries to edit the same document. The message should contain the name of the person currently editing the document.That is exactly what happens today when it is enabled.

  2. I want to write an agent to run every night to unlock all documents to correct invalid locks that might remain from high-level managers who shut their PC’s down at night by flipping the power switch rather than doing an orderly shut down (don’t ask).

Yes you can.

What are you asking here, how to do both ?