AnsweredAssumed Answered

Is there a way to execute a QueryTask synchronously?

Question asked by briancachia on Feb 11, 2015
Latest reply on Feb 11, 2015 by oearley

I want to query a REST Service for the underlying Points/Polylines/Polygons.


ie. ../FeatureServer/0/query, ../FeatureServer/1/query and ../FeatureServer/2/query


Instead of nesting all the callbacks into each other I am trying to find a way to execute each query synchronously so that I can group the results in one array.


I also noticed there is a ../FeatureServer/query service that enables to query all the 3 underlying layers together but can this be achieved through the Javascript API Objects? A jquery synchronous ajax call would suffice but I would like to achieve this the proper way through the API.