Locking documents

I am beginner with domino and have designed a database which keeps a track of a whole bunch of reports created by users. Now as an administrator I would like to go in from time to time and lock all the old reports. Only the Administrator should have the access to unlock these reports. Doc locking is enabled for the database. I have tried @DocLock([Lock]) and @DocLock([Unlock]) commands but it does not work.

Subject: Locking documents

Lock and Unlock will not work for this kind of restriction. The other way to do it is create a field ‘Status’ on the report form. Add an agent or view action to mark this field ‘Status’ as ‘Locked’ and another agent or view action to mark this field as ‘Unlocked’. In the ‘Queryopendocument’ event of view, check the value of field ‘Status’.

If it is ‘Locked’ set the parameter Continue = ‘false’

else Continue = ‘true’

Subject: RE: Locking documents

Or, better, restrict the users to Author-level access and prevent editing by using an Authors-type field. QueryOpenDocument and the various form events will not prevent users from modifying the documents unless they know nothing about Notes AND can’t read the Notes client help database. Even then, accidents can happen. If you use the security that’s built into the system, the users cannot get around it.

Subject: RE: Locking documents

Thanks Mohammed/StanBut if I use the Author level access and prevent editing by using the authors field,will the users be able to create any new docs in the first place?