It should be so very straightforward.
One “customerdocument” with a multi-value names-field called “managers”. It is a “select names from adress book” field.
When I save the document, I’d like to call an agent that gets a notesdocumentcollection from a set of keys and adds the names-field content into a multivalue-field.
The the collection-document gets a call to doc.ComputeWithForm( False, False ) which should update any fields and then I save it.
The problem is that when I run the agent on PostSave, I don’t get the names as a list. Testing the uidoc fieldvalue with isList() says false.
And here I get the problem. The agent is in LS… how to I take the multi-value names and make it into a proper list with adress book names?
“adam/grp/domain”:“eve/grp2/domain”… so I can push it into the collectiondocument and get ALL values?
Because right now, I get “adam/grp/domaineve/grp2/doman” as one string. If I manually resave the end document it get set as I want.
Now, when I save, I don’t get the new values. There is no refresh on keyword change so I can’t use a hidden field that makes all values into a list, since eventhough I run on PostSave, it won’t get updated until AFTER the agent has run.
Any tips would be appreciated!