Search code examples
xpages

Display multi-value fields with new line in Xpages view Column


Sometimes Xpages drives me insane. So many easy things (things that should be easy anyway) are hard.

Simple questions, how do I display multi-value fields with new line in Xpages view Column?


Solution

  • There's ways to do it with computed controls, where you explode the array and add a
    and stuff like that.

    Personally I like to just use a repeat control. Set the field as the repeat value. Add a computed control for the "rowData" and add a
    if you want a new line between each of them. I'm sure I did this on an early NotesIn9 though I forget which one at the moment.

    the key is this. a Repeat control can repeat or "iterate" over any type of array or "multi-value" object.