AnsweredAssumed Answered

query class outFields can only return all fields from hosted feature service

Question asked by john3853 on Apr 11, 2014
Latest reply on Apr 15, 2014 by john3853
We have been trying to access several attribute fields using the query class.  It works as expected using a layer from our own ArcGIS 10.1 server.  However, when trying to access from an ArcGIS Online hosted feature service it can only access all the fields.  If you try to specify only several fields it does not return anything. 

//this works query.outFields = ["*"];  // this does not work query.outFields = ["NAME", "STATE_ABBR", "POP04"];

Has anyone else experienced this issue?  It appears to possibly be a bug using the Javascript API to query the hosted feature services.