Hi,I have an authors field on my document, unfortunately, I programmed it wrong, using:
@Name([Canonicalize];Person + “/”)
Its doing what it says in the help, meaning that, it gets set wrongly for people in different countries.
So. I am trying to create an agent to create this in some documents. The person field is a field containing someones name, with a CN formula to make it look nicer. I don’t want to change this field. You can select more than one name in it, in case someone was on holiday.
The problem I am having is with this code:
n := 1;
@While(n <= @Elements(Person);
t1:= Person[n];
t3:=@DbLookup( “Notes” : “Nocache” ; “85255F7E:006405B0”;“($NamesFieldLookup)”; t1 ; 3) ;
@Prompt([Ok];“”;t3);
@SetField(“gtAuthor”; @Text(t3));
n := n + 1);
SELECT @All
It is using a While loop, to look through the people in the Person field, one by one, looking up a field on the CAB which is containing there CN= name (full notes name for authors field).
But…the Prompt is getting set each time correctly:
Like:
“CN=Generic Notes Developer/OU=RG-Region/O=Company/C=CC”
But, the setfield is setting the field to a load of rubbish, like:
“CN=Generic Notes Developer/OU=RG-Region/O=Company/C=CC”
“Generic Notes Developer”
“Employee Number”
Why is this?