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

SelectItem multiple values problem after update to SmartGWT 4

$
0
0
I had an application running on SmartGWT 2.5. After the update to 4, SelectItem that should show multiple values started to behave strange.

Mentioned SelectItem is placed in DynamicForm, and form is populated by calling "form.editRecord(record);"
In case that only one value is stored in "organizationType" field (example "RN"), item shows correctly selected value. But if multiple values are stored (example "RN,NA") no values are selected. Calling "organisationType.getValueAsString()" shows correct values both times.

Editing the data works fine, the only problem is that multiple values are not visible upon populating the form (see attachment).

SelectItem config:
Code:


organisationType = new SelectItem("organisationType");
organisationType.setMultiple(true);
organisationType.setMultipleAppearance(MultipleAppearance.GRID);
organisationType.setWidth(425);
organisationType.setHeight(210);
organisationType.setMultipleValueSeparator(",");
organisationType.setValueMap(organisationTypesList);


Attached Images
File Type: png ERROR.png (41.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles