AnsweredAssumed Answered

How to read the attribute table from a feature layer?

Question asked by geonetadmin on Nov 29, 2013
Latest reply on Dec 2, 2013 by geonetadmin
Original User: Greforb

How do I read the attribute table from a feature layer using javascript? Do I have to query the features and look in the graphics or can I avoid having to look in the graphics and just get a table with attributes? I want to create a drop down from unique values in one of the fields in the attribute table. I currently did this using FeatureLayer.queryFeatures, but apparently this only returns 1000 features. I tried to increase this number in my arcgisonline hosted feature service without any luck. When I look in my under Services (as told elsewhere on this or another forum, can't remember) I am told that there are no services, hence I cannot increase the number of features return by querying! Also I guess that performance will be poor if I increase this value. So ideally I want to avoid querying and just retrieve the full attribute list without geometry attached to it. Then I can run through that and produce the list I need.