m benway
m benway

Reputation: 245

XPages computed field control multivalue

I put a Computed Field control on an Xpage. How do I indicate that it has multiple values?

I've looked all day on here and other places and the help files.

If I put "Red", White", "Blue" as the value of that field, it will only display "Blue"

That is the most basic code I can think of...simply a list of text values, but I also tried formulas, etc, which all work if used alone. e.g

getComponent("fld1").getValue(), @UserName, "another value"

Upvotes: 0

Views: 1024

Answers (2)

Robert Glass
Robert Glass

Reputation: 1

You could use a repeat control to display the multiple values.

<xp:repeat id="repeat1" rows="9999" indexVar="logIndex" var="logLine">
    <xp:this.value><![CDATA[${javascript:document1.getItemValue("FieldName")}]]></xp:this.value>
    <xp:text escape="true" value="#{javascript:logLine}"></xp:text>
    <br/>
</xp:repeat>

Upvotes: 0

stwissel
stwissel

Reputation: 20384

There are no multi-value computed controls. Notes items can have multi-values. Classic fields can have a property to join/split the item values. The XPages component behaves more like computed text in classic. So compute into a single String

Upvotes: 3

Related Questions