I have a parks ArcGIS layer. I'd like users to be able to select checkboxes for amenities (picnic tables, camping etc), query the Amenities field and return all those parks which contain at least one of these selected amenities. I have tried the following without success. Wondered if somebody could point me in the right direction.
var queryTask:QueryTask = new QueryTask(url); 
queryTask.showBusyCursor = true;
queryTask.useAMF = false;
var query:Query = new Query();
query.where = "'Amenities' IN ('Baseball', 'Basketball')";
query.returnGeometry = true;
query.outFields = ["*"];
queryTask.execute(query, new AsyncResponder(onSelectResult, onSelectFault));
Thanks
Rory