AnsweredAssumed Answered

Query (Return) All Points In Query Task and Query Object

Question asked by behClevest on Sep 27, 2017
Latest reply on Jul 31, 2018 by Mehretab

Using ArcGIS JavaScript API 3.21 I need to grab all Points on a Server. The code works for me with Query.where clause at

query.where = "FeederID = 'RMT001'";

but as I said I need to get all Points. I tried to run the query without any Query.where statement but not getting back anything. can you please let me know how to get all Points?

function execute () {
       var query = new Query();
       query.where = "FeederID  = 'RMT001'";
       query.returnGeometry = true;
       query.outFields = [ "CreationUser", "FName" ];
       queryTask.execute(query, showResults);
    }

Outcomes