AnsweredAssumed Answered

Push values from FeatureLayer into JavaScript array

Question asked by michaellodes on Feb 11, 2018
Latest reply on Feb 12, 2018 by rscheitlin

Hi all,


I'm working with JS 4.6.


I want to query the table of a FeatureLayer to get all of its containing values and then push it into a JavaScript array? I can't find any sample code.


My FeatureLayer ist hosted on ArcGis Online. This is my code but I get featureset "length: 0" in my console


    var queryStatesTask  = new QueryTask({
      url: "..."
      var query = new Query();