This content has been marked as final. Show 1 reply
I figured it out... My services was 9.3 framework based. I just added the line of code: queryTask.useAMF = false; and it worked.
var queryTask:QueryTask = new QueryTask(queryLayer); queryTask.disableClientCaching = true; var query:Query = new Query(); query.outFields = queryFields.split(","); query.geometry = map.extent; query.returnGeometry = true; query.where = queryExpr; queryTask.useAMF = false; query.outSpatialReference = map.spatialReference; queryTask.execute(query, new AsyncResponder(onResult, onFault));