Can someone explain to me why this simple direct code doesn’t work,
var serviceStore = new dojo.data.ItemFileWriteStore({ data: {identifier: "serviceCode",items:[]} }); //jsonObj is a json object that I obtain from the server via AJAX for(var i = 0; i<jsonObj.length;i++){ serviceStore.newItem({serviceCode: jsonObj[i]}); } var serviceFilterSelect = dojo.byId('serviceSelect'); serviceFilterSelect.store = serviceStore;
The error does not appear at all, but my combobox with the identifier "serviceSelect" does not display any parameters, the combo is declared in the html section of my code,
<input dojoType = "dijit.form.ComboBox" id="serviceSelect"></input>
Any pointers in the right direction would be highly appreciated.
source share