This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Ok, I think there is a bug with the NotesXspDocument class. It seems to return the field value as a string with the brackets around it when you expect it to be an array. The way you can test this is try to return the "length" property, which will always be 1, indicating a single element.
So even if you explode the values or use a javascript split() and then @Implode them, the brackets are part of the first and last elements because they were appended to the string. So it looks like an array is being returned.
The solution is to use the NotesDocument class instead:
doc=document.getDocument(); //get the backend doc
@Implode(doc.getItemValue("fieldname"),"<BR>");
I'll throw out another option too. You can use a repeat control on a multi-value field and then use an Editbox in readonly mode to display each item in the list.
John
Feedback response number WEBB7NYL7Y created by ~Ethan Umresaakol on 02/05/2009