Dear all,
I faced an issue when i try to create an combobox, with data from DataSource where get from dataUrl. on v11.0 of isomorphic smartclient
Please support to fix the problem, or to understand where is my fault.
ISSUE description :
Using Browser:
Test framework:
I think I found a bug in Smart GWT
I faced an issue when i try to create an combobox, with data from DataSource where get from dataUrl. on v11.0 of isomorphic smartclient
Please support to fix the problem, or to understand where is my fault.
ISSUE description :
Select option isn't auto-selected to first element if I use optionDataSource instead of valueMap array
the code below
the code below
Using Browser:
- Firefox
Test framework:
- isc_version=v11.0p_2016-05-14 - not work
- isc_version=v9.1 working corectly
- Not work: http://www.smartclient.com/docs/11.0...lectsDatabound
- Work OK: http://www.smartclient.com/docs/9.1/...lectsDatabound
Code:
/* //returned requested data to DataSource [ { "profile_id": "2317", "profile_name": "Main Switch", "profile_src_number": "xxxxxxxxxxx", "profile_port": "5060", "profile_ip": "3.3.3.3" }, { "profile_id": "3702", "profile_name": "Second Switch", "profile_src_number": "31625397988", "profile_port": "5060", "profile_ip": "2.2.2.2" }, { "profile_id": "3312", "profile_name": "Test Switch", "profile_src_number": "xxxxxxxxxxx", "profile_port": "5060", "profile_ip": "1.1.1.1" } ]*/ isc.DataSource.create({ ID: "dsNormalProfiles", clientOnly:true, dataFormat:"json", dataURL: "/data/xmlrpc/get_icall_settings/, defaultTextMatchStyle: "substring", fields:[ {name:"profile_id", primaryKey:true}, {name:"profile_name", type: "text"}, {name:"profile_src_number", type: "text"}, {name:"profile_port", type:"text"}, {name:"profile_ip", type:"text"} ] }); isc.DynamicForm.create({ ID: "form_normal_profiles", valuesManager:"vm_normal", wrapItemTitles: false, titleOrientation: "top", padding: 10, isGroup:true, groupTitle:"Select Profile", numCols:1, autoDraw: true, fields: [ /*--- defaultToFirstOption: true NOT WORK on Select with optionDataSource ----*/ {name:'selProfile2', showTitle: false, width: "*", titleAlign: "left", autoFetchData: true, defaultToFirstOption: true,editorType:"select", optionDataSource: "dsNormalProfiles", displayField:"profile_name", valueField:"profile_id" }, /*---- defaultToFirstOption:true is work on Select with simple valueMap ----*/ {name:'selProfile3', showTitle: false, width: "*", titleAlign: "left", autoFetchData: true, defaultToFirstOption: true, editorType:"select", valueMap: ["firs", "second", "third"] } ] });
Comment