I have a RestDataSource that gets dynamically created, that is later bound to a DynamicForm in my app. Evrything is working fine, except I cannot get the drop-down to work properly for my enum-fields.
I have the following field declaration:
And the JSON response looks like this:
However, this does not create a drop-down of values, the drop-list remains empty, while the first element of the drop down is set to [object Object], [object Object], [object Object] (and so on).
How should I format my json to get the drop down properly populated?
I'm using SmartGwt from 24/11 2010, on a Windows 7 machine, running my app in the latest Chrome, Firefox and IE.
I have the following field declaration:
Code:
DataSourceField field = new DataSourceField(id, FieldType.ENUM, name); field.setValueXPath("foo/bar"); field.setChildTagName("value"); field.setMultiple(true);
Code:
{"response": {"status":"0", "startRow":"0", "endRow":"1", "totalRows":"1", "data":[ {"foo":[ {"bar":[ {"value":"0"}, {"value":"1"}, {"value":"2"}, {"value":"3"}, {"value":"4"}, {"value":"5"}, {"value":"6"}, {"value":"7"}, {"value":"8"}, {"value":"9"}]}]}]}}
How should I format my json to get the drop down properly populated?
I'm using SmartGwt from 24/11 2010, on a Windows 7 machine, running my app in the latest Chrome, Firefox and IE.
Comment