We have ported this fix to 10.0/5.0. Please try the next nightly build, dated January 28.
Regards
Isomorphic Software
Announcement
Collapse
No announcement yet.
X
-
I am no longer seeing this warning using SmartClient Version: SNAPSHOT_v10.1d_2015-10-25/Pro Deployment (built 2015-10-25).
Thanks!
Leave a comment:
-
We're not sure what you mean. That other issue was solved before you reported this one, so it does not seem that they could be related.
Leave a comment:
-
We've made a change to solve this issue. Please try the next nightly build, dated October 24.
Regards
Isomorphic Software
Leave a comment:
-
"Derived valueMap is therefore unpredictable" warning with SelectItem.
Isomorphic,
I'm seeing the following warning logged for a SelectItem if it uses an option DataSource and the DataSource contains a record where the value field (animalId) is 0.
Code:10:02:51.846:TMR3:WARN:fetchMissingValues:isc_SelectItem_1[Animal]:Deriving valueMap for 'animalId' from dataSource based on displayField 'animalName'. This dataSource contains more than one record with animalId set to 0 with differing animalName values. Derived valueMap is therefore unpredictable.
I did notice that if I change animalId from an integer field to a text field in the AnimalXmlDS, the warning is not logged.
Entry Point:
Code:public void onModuleLoad() { final DynamicForm form = new DynamicForm(); form.setWidth(500); SelectItem animal = new SelectItem("Animal"); animal.setOptionDataSource(AnimalXmlDS.getInstance()); animal.setValueField("animalId"); animal.setDisplayField("animalName"); form.setItems(animal); form.draw(); }
Code:public class AnimalXmlDS extends DataSource { private static AnimalXmlDS instance = null; public static AnimalXmlDS getInstance() { if (instance == null) { instance = new AnimalXmlDS("animalDS"); } return instance; } public AnimalXmlDS(String id) { setID(id); setRecordXPath("/List/animal"); DataSourceIntegerField animalIdField = new DataSourceIntegerField("animalId"); animalIdField.setHidden(true); animalIdField.setPrimaryKey(true); DataSourceTextField animalNameField = new DataSourceTextField("animalName"); setFields(animalIdField, animalNameField); setDataURL("ds/test_data/animal.data.xml"); setClientOnly(true); } }
Code:<List> <animal> <animalId>0</animalId> <animalName>Cat</animalName> </animal> <animal> <animalId>1</animalId> <animalName>Dog</animalName> </animal> <animal> <animalId>2</animalId> <animalName>Giraffe</animalName> </animal> <animal> <animalId>3</animalId> <animalName>Goat</animalName> </animal> <animal> <animalId>4</animalId> <animalName>Marmoset</animalName> </animal> <animal> <animalId>5</animalId> <animalName>Mouse</animalName> </animal> </List>
Tags: None
Leave a comment: