AnsweredAssumed Answered

not getting any selection results, JSAPI 3.21 with WABuilder 2.5

Question asked by mb1471 on Mar 22, 2018
Latest reply on Mar 23, 2018 by rscheitlin
I'm using JSAPI 3.21 with WABuilder 2.5, getting the below error, not sure why?
my guess is maybe a bad where clause and not getting any selection results, or bad syntax and not using selection results correctly with JSAPI, any help would be great
thanks Matt
"esri/tasks/query",
"esri/graphic",
...
function(
...
Query,
Graphic,
//get layer
var currentLayer = this.map.getLayer(this.map.graphicsLayerIds[1]);
//create query
var query = new Query();
query.where = "parcel_id = '01364000010000'";

//query to get selection on feature layer
currentLayer.selectFeatures(query);
//get the extent
theExtent = currentLayer.getSelectedFeatures().geometry.getExtent();
//zoom to map extent
this.map.setExtent(theExtent);
debug results from chrome dev tools

Outcomes