There is an author field on the form, users created a lots documents, but as users change a lot for the same document, we decided to delete this Author item. I run a agent below to remore the item form all document, but users still can not edit the documents
Dim session As New NotesSession
Set db = session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
If doc.Form(0)="CreateGoal_HT" Then
Call doc.RemoveItem( "Author" )
Call doc.Save( False, True )
End If
Set doc = collection.GetNextDocument(doc)
Wend
Subject: RE: Why delete author field on the form, the document is still not available to edit?
You have misunderstood how Authors items work.Removing an Authors item from the document, will never give more people access to edit the document. You can only take away access by doing this.
If you want users to be able to edit every document, you must give them Editor access to the application. Or, create an Authors item that lets them do this for specific documents, e.g. by including a role name in an Authors item.