db = new Array("myserver", "myfolder\\mydb.nsf")
dir = getComponent("Dir").value;
div = getComponent("Div").value;
lu = @DbLookup(db, "ManagerAccess", dir + "PP" + div, "DTManagers");
var a = [];
a.push(lu);
var item:NotesItem = docBackEnd.replaceItemValue('FormReaders', @Unique(a));
item.setReaders(true);
That code is on the querySaveDocument ssjs. The result I get from the @DbLookup (when I put in a computed field) look like this: Pedro Martinez,Manny Ramirez,David Ortiz,Terry Francona
I tried doing an @Explode(@Implode) thing on it, but it doesn't seem to work. The error I get in the browser just tells me that the replaceItemValue line is broken. To test it, I pushed several strings one at a time, and it worked correctly populating my FormReaders field with the multiple entries.
What am I doing wrong?