Hi all,
I'm using the SelectItem component configured this way:
I'm not filling options with a datasource but I managed to fill options this way:
The options values comes from this JSON:
This select item is attached to a DynamicForm which use a datasource that sends the following json:
As you can see, my select item is configured to map:
How can I map (check or uncheck) what I receive from the server to what is previously filled as options?
I'm using the following versions:
Isomorphic SmartClient/SmartGWT Framework (v10.0p_2015-11-20/Pro Deployment 2015-11-20)
GWT 2.7
Firefox 38
I'm using the SelectItem component configured this way:
Code:
private SelectItem pvrs = new SelectItem("pvrs", "PVR"); this.pvrs.setMultiple(true); this.pvrs.setMultipleAppearance(MultipleAppearance.PICKLIST); this.pvrs.setDataPath("editorialData/pvrSet"); this.pvrs.setGlobalTabIndex(13);
Code:
this.pvrs.setValueMap((LinkedHashMap<Long, String>) formOptions.get("PVR"));
Code:
"formOptions" : { "PVR" : { "48" : "None", "51" : "Lan", "49" : "Priv", "50" : "Pub", "52" : "Usb", "53" : "NPVR" }, ... }
Code:
{ "response":{ "status":0, "data": { "id":1, "editorialData":{ "pvrSet":[ { "id":48, "displayedValue":"None" }, { "id":50, "displayedValue":"Pub" }, { "id":52, "displayedValue":"Usb" } ] } } } }
Code:
this.pvrs.setDataPath("editorialData/pvrSet");
I'm using the following versions:
Isomorphic SmartClient/SmartGWT Framework (v10.0p_2015-11-20/Pro Deployment 2015-11-20)
GWT 2.7
Firefox 38
Comment