Skip to main content
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:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Ok, got the solution

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

XPages - the most basic of help (~Sigmund Zenkro... 4.Feb.09)
. . try multipleSeparator property (~Justin Zekaman... 4.Feb.09)
. . . . nope, that wasn't it (~Justin Zekaman... 4.Feb.09)
. . Have you tried exploding the array?... (~Joan Zektoomar... 4.Feb.09)
. . . . If I can expand On Paul's response (~Ethan Umresaak... 4.Feb.09)
. . . . . . some questions on your solution (~Justin Zekaman... 5.Feb.09)
. . . . . . . . Ok, got the solution (~Ethan Umresaak... 5.Feb.09)
. . . . . . . . . . baby steps (~Sigmund Zenkro... 5.Feb.09)
. . . . . . . . . . . . don't have all the answers... (~Ethan Umresaak... 5.Feb.09)
. . . . . . . . . . OK field is working now, but what a... (~Justin Zekaman... 6.Feb.09)
. . . . . . . . . . . . Have you found a solution? (~Ned Zenfanache... 28.Apr.09)
. . . . . . . . . . . . . . a possible solution (~Ben Quettumige... 17.Jul.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS