I got an answer yesterday on my question to capture the value from one column in a view and show it in another field or use it to automatic create and send email internally.
But…
When I populate the field on the form that is shown in the view column it is like:
Fname1 Lname1/domain, Fname2 Lname2/domain, Fname3 Lname3/domain
separated with commas.
In the view it looks like this:
CN=Fname1 Lname1/O=domain, CN=Fname2 Lname2/O=domain, CN=Fname3 Lname3/O=domain
also separated with commas.
When I capture the data from the view by @DbLookup it looks like:
CN=Fname1 Lname1/O=domain CN=Fname2 Lname2/O=domain CN=Fname3 Lname3/O=domain
without commas…!!!
I have been told that I have to have the result as a text list to use it in my SendTo command in Lotus Script and struggle to find out how to create this.
Any advice…?
Subject: Missing separator sign
Do you really select “allow multiple value” in the texte field used for store the result of the dblookup ?You have to check on the properties tabs of the fields in order to tell to Domino what kind of separator to use.
Subject: RE: Missing separator sign
Yes. I have selected that option. Without that I cannot pick more than one person in my names field.
I can see the comma as separator in the view but when I capture the data with @DbColumn the comma is removed and replaced…?? with spaces.
Then I got problem with another advice I got on this forum
ArrayUnique(FullTrim(Split(doc.GroupField(0),“,”)))
since the possibility to split this captured value into substrings miss some separator signs.
Subject: RE: Missing separator sign
Check out the actual “Backend” field values.
-
Open a view that shows one of the documents that contains the list that has several names selected.
-
Highlight (click to select) the document and go to the document properties.
-
In the properties box, select the second tab and find the field in the box to the left. The box on the right will show the field details and its contents.
You should see details similar to this:
Field Name: YourFieldName
Data Type: Text List
Data Length: 53 bytes
Seq Num: 1
Dup Item ID: 0
Field Flags: SUMMARY NAMES PROTECTED
“FIELD VALUE 1”
“FIELD VALUE 2”
Make sure that the data you think should be there is there. It could be that the Multivalue separator on the field is a newline or a blank line and when it is displayed in the view that is replaced with a space as new lines/blank lines don’t show up in a view…
If it is a list and the values are as you think they should be then you really should turn the list into a string to store in the backend. See your first posting for my suggestion to @implode the dblookup before storing it in the document…
Subject: RE: Missing separator sign
I agree. You didn’t show us any of your code. The DBLookup/DBColumn should give you a list. If necessary, refer to a field rather than a column.