Why delete author field on the form, the document is still not available to edit?

Hi,

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

help please!!!

Linda

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.

Subject: Why delete author field on the form, the document is still not available to edit?

User may edit document if:- They have “Author” access to the database, and their name, or [RoleName], is listed in an Authors field.

OR

  • They have “Editor” access to the database. This allows them to edit everything in the database.

The author field has been removed. No users with “Author” access can edit the document.

You may wish to add a new Author field to the Form. A computed field. The formula can be a role name.

“[RoleNameHere]”

Any user with that Role will be able to edit the document

You could write an agent to add to existing documents.

Dim x as New NotesItem(doc, “Authors”, “[RoleNameHere]”, AUTHORS )

Subject: RE: Why delete author field on the form, the document is still not available to edit?

I see, I will put the field back and set up a role.

Thanks a lots for both you. ^-^

Linda