Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DetailViewer and integer fields with multiple="true"

$
0
0
We have a datasource with a multi integer-valued field defined as follows:

Code:

<field name="someField" type="integer" multiple="true">
    <title>Some multi integer-valued field</title>
    <valueMap>
        <value ID="1">A</value>
        <value ID="2">B</value>
        <value ID="4">C</value>
        <value ID="8">D</value>
    </valueMap>
</field>

When we view a record for this datasource using the DetailViewer (something like the snippet shown below), the value appears as the mapped label as expected using the valueMap only if the value is a single value. If the value is not a single value, it shows a comma separated list of integers rather than the mapped labels from the valueMap.

Code:

DetailViewer detailView = new DetailViewer();
detailView.setDataSource(dataSource);
detailView.setData(new Record[] { record });
...

SmartClient Version: v9.1p_2014-09-24/Pro Deployment (built 2014-09-24)
FF 24.8.0

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles