hi all: i have a form, including two Author Fields, a Reader Field and some other fields.
if i open the document and input A into an author field, B into a reader field, and [Managers] role into an author field (A and B’s access in ACL is Author), then save it. the authentication works well, only A and managers can read and edit it, and B can read it.
but when i use lotusscript to create document automatically.
my code is:
Set doc_profile = New NotesDocument(db)
doc_profile.form = “profile”
Call doc_profile.AppendItemValue(“emp_name”,employee)
Call doc_profile.AppendItemValue(“emp_fullname”,emp_full)
Set item = doc_profile.ReplaceItemValue(“Authors”, A)
item.IsNames = True
item.isAuthors = True
Set item = doc_profile.ReplaceItemValue(“Readers”,B)
item.IsNames = True
item.isReaders = True
Set item = doc_profile.ReplaceItemValue(“Readers_group”,“[Managers]”)
item.IsNames = True
item.isAuthors = True
Call doc_profile.ComputeWithForm(False,False)
Call doc_profile.Save(True,True)
then isReaders and isAuthors can’t work, A and B can’t see the document in the view, but the managers can open and edit document.
and when manager open it, change the mode to edit, and save the document without changes, then all fields works well too.
the name A and B’s format likes:
Michael zhan/10091372/GCR/NONEKC
why this happened? anyone can give some helps? thanks in advance!