i need do a query in two layer

450
2
04-25-2019 10:20 AM
EduardoMazzucchelli
New Contributor II

#select query‌, #featurelayer‌, #goto

hi, how are you.

I have 2 layers, active wells and inactive wells, 

I have to do a query in active wells, but if I not found I have to do a query on inactive wells, 

can I do a concat ? the layer one and two ?? or do a query on two layers ????

const query = new Query();
query.where = "WELLCOMP_NAME = '" + aux.dsWellComp + "'";

pozosA.queryExtent(query).then(function(results){
view.goTo(results.extent.center);
});

const query = new Query();
query.where = "WELLCOMP_NAME = '" + aux.dsWellComp + "'";

pozosB.queryExtent(query).then(function(results){
view.goTo(results.extent.center);
});

regards

Eduardo

0 Kudos
2 Replies
JoshuaBixby
MVP Esteemed Contributor

The GeoNet Resource Hub space is for questions about GeoNet itself.  I am sharing your question with Analysis‌ to get more visibility.

0 Kudos
EduardoMazzucchelli
New Contributor II

ok, ok, sorry I did not realize.

thanks !!!

0 Kudos