In an agent called from a browser the following Java for setting a readers item works, but the document is not visible to the authenticated user in a view. When I run LotusScript code on the document, it then becomes visible.
Java
Vector v = new Vector();
v.addElement( “CN=Geoff Pell/0=Primary” );
v.addElement( “[Admin]” );
Item readersList = doc.replaceItemValue( “readersList”, v );
readersList.setSummary( true );
readersList.setReaders( true );
doc.save( true, true );
LotusScript
newValues( 1 ) = “CN=Geoff Pell/O=Primary”
newValues( 2 ) = “[Admin]”
Set item = New NotesItem( doc, “readersList”, newValues, READERS )
Call doc.Save( True, True )
When I look at the properties they are as one would expect.
LotusScript creates this:
Field Name: readersList
Data Type: Text List
Data Length: 36 bytes
Seq Num: 3
Dup Item ID: 0
Field Flags: SUMMARY READ-ACCESS NAMES
“[Admin]”
“CN=Geoff Pell/O=Primary”
Java creates this:
Field Name: readersList
Data Type: Text List
Data Length: 36 bytes
Seq Num: 2
Dup Item ID: 0
Field Flags: SUMMARY READ-ACCESS NAMES
“[Admin]”
“CN=Geoff Pell/0=Primary”
Any thoughts appreciated thank you.