AnsweredAssumed Answered

Is it possible to carry out queryTask on a json string?

Question asked by MoritzP12 on Aug 27, 2015
Latest reply on Aug 27, 2015 by spiskula

So for examples instead of:

 

var queryTask = new QueryTask("http://arcgis/rest/services/live/SEARCH/MapServer/15");
         var query = new Query();
         query.returnGeometry = false;
         query.outFields = [
             "NAME"
];


         ];

 

I would do this:

var queryTask = new QueryTask(jsonString);
         var query = new Query();
         query.returnGeometry = false;
         query.outFields = [
             "NAME"
];


         ];

I can't seem to find any examples of it and just wondered if it's possible?

Thanks

Outcomes