I have an app that was populating a combobox with a JSON source. The HTML is below……
<label for="user">User: </label>
<input dojoType="dijit.form.ComboBox" class="selectionNav tableData" value="" name="user" id="sample/user">
The JSON from sample/user” is here……
{
"identifier": "user",
"label": "label",
"items": [
{
"user": null,
"label": null
},
{
"user": "Joe Wilkie",
"label": "Joe Wilkie"
}
]
}
Previous to dojo 1.7 this worked like a champ! After upgrading the dojo, I noticed in firebug that the JSON is still being fetched ok and is valid but it’s no longer populating the comboBox.
Any idea from anyone how this can be fixed? Many thanks in advance.
Janie
The default search attribute on the ComboBox is name, which isn’t in the store. Add the
searchAttrto the combo box.Here is my full test code that worked: