[Inject("queryTask")] public var queryTask:QueryTask=new QueryTask(); //execute the query: public function doQueryStreamAll():void { var aQuery:Query=new Query(); aQuery.outSpatialReference=theMap.spatialReference; aQuery.outFields=["AgencyID", "AgencyName"]; aQuery.returnGeometry=false; queryTask.execute(aQuery, new AsyncResponder(onQuerySuccess, onQueryFail)); }
Any Ideas what could be happening? I'm running this OnCreationComplete in an attempt to get all the agencynames and agencyids from a layer and put them in a combo box when the application first opens. I know that the path to the service is correct and I've run other queries successfully to this service