Following the sample to the letter and....upon clicking the ComboBox, I get the following error: Uncaught TypeError: Object [object Object] has no method 'query'
Has anyone been able to implement this in the past year or so? I know this sample was from 2009.
With the information provided, it's kind of hard for people to figure out what your problem is. Can you post your code and point out which line of the code causes the issue?
ESRI posted another approach here you may find it useful.
function popDrop(results) { //Populate the ComboBox with unique values var zone; var values = []; var testVals={};
//Add option to display all zoning types to the ComboBox values.push({name:"ALL"})
//Loop through the QueryTask results and populate an array //with the unique values var features = results.features; dojo.forEach (features, function(feature) { zone = feature.attributes.EQPCAT; if (!testVals[zone]) { testVals[zone] = true; values.push({name:zone}); } }); //Create a ItemFileReadStore and use it for the //ComboBox's data source var dataItems = { identifier: 'name', label: 'name', items: values }; var store = new ItemFileReadStore({data:dataItems}); dijit.byId("resourceCategory").store = store; }