Readers field

Hi,

I have been setting Readers field values in documents with lotus script. But when I see the effect its not working properly.

for example, if I put my name in readers field through Lotus Script, then documents will not be visible to anybody except me. When I want to add more prople, its not visible to them evenif they have their names in Readers field.

I have checked that this field is READ ACCESS in documents property.

When I open and save documents from view, it shows to everybody those who are listed in the Readers field.

Here is the code I am writing:

Dim nitem as NotesItem

tmp = uidoc.fieldgettext(“Authors”)

mtmp = uidoc.fieldgettext(“mReaders”)

Set nitem = vdoc.getfirstitem(“Readers”)

Call nitem.appendtotextlist(Trim(tmp))

Call nitem.appendtotextList(Trim(mtmp))

Subject: Readers field

You need to set the item propoerty “IsReaders” to TRUE

i.e.

Dim nitem as NotesItem

tmp = uidoc.fieldgettext(“Authors”)

mtmp = uidoc.fieldgettext(“mReaders”)

Set nitem = vdoc.getfirstitem(“Readers”)

'NEW LINE

nItem.isReaders = True

'END OF NEW LINE

Call nitem.appendtotextlist(Trim(tmp))

Call nitem.appendtotextList(Trim(mtmp))

Subject: RE: Readers field

Thanks…I have added the line but its still not working. I have to edit and save documents manually then only this readers field takes effect.