I’ve been struggling with a multi-value Names field in XPages now for a few days. The result is the same in both IE8 & Firefox3.6. I hope someone out there can offer some help.
- In edit mode, the names display in Abbreviated format (good) but I cannot get the display to show each name on a separate line:
I’m using a multi-line Edit Box control with “,” as the multiple separator.
Question #1: How can I get each name to display on its own line?
I don’t know if the custom converter has any bearing on the actual display but this is the one I’m using (from the ddwiki example on Converters):
<xp:this.converter>
<xp:customConverter>
<xp:this.getAsObject><![CDATA[#{javascript:@Name("[Canonicalize]", @Explode(value, ","))}]]></xp:this.getAsObject>
<xp:this.getAsString><![CDATA[#{javascript:@Implode(@Name("[Abbreviate]", value), ",")}]]></xp:this.getAsString>
</xp:customConverter>
</xp:this.converter>
It’s not clear to me if the converter is what causes the multi-value names to be stored properly in the Notes Names field in Canonical format, but this is what I get (good).
- In READ mode, the field just displays in a long string with the names in Canonical format:
Question #2 & #3: How can I get the names to display in Abbreviated format? And, how can I display each name on a separate line?
I even added this as the Default Value formula & various incantations of it to no effect:
xp:this.defaultValue</xp:this.defaultValue>
CAVEAT: If anyone suggests using a Repeat Control, PLEASE provide code to show how to split up a field. I’ve seen examples/tutorials on how to use them on document collections, but nothing on using them for multi-value fields.
Thank-you in advance for any practical tips/advice offered.