Problem solve Get help with specific problems with your technologies, process and projects.

Limit number of times to edit a document

How do I resolve a problem in limiting the number of times a document can be edited? I do not want the author of a document to be able to make changes once it has been submitted or forwarded to and approving supervisor. This is a Leave/Travel Request database application.

If you really want to limit the number of times that someone can edit a document you could write some code that could run from a QueryOpen event (Notes client) of the WebQueryOpen event (Web) to read and increment a counter field in the document. Once if crosses a threshold value, you simple stop the document from opening in the event. However, for your purposes, if I understand them correctly, you could handle this in a potentially easier way. Give the users creating the Leave/Travel request Author access to the database. Then remove their name from any authors fields in the document once they save the request. They will no longer be able to edit the document but will still be able to read it. Any other users with Author access and still in an Authors field will be able to edit the document, as will as users with Editor or higher access.

Dig Deeper on Domino Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...