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
//get layer
var currentLayer =[1]);
//create query
var query = new Query();
query.where = "parcel_id = '01364000010000'";

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