maxwellr

Problem with Feature Layer queryFeatures

Discussion created by maxwellr on Jun 2, 2014
Latest reply on Jun 9, 2014 by maxwellr
I recently updated my application to JSAPI 3.9 and I noticed that the queryFeatures method on Feature Layers is not working as expected. It will not return all feature attributes and does not honor the 'outFields' property for the Feature Layer or for the query. The only attribute field that is returned is the one set as the display field.

I am able to work around this by using a Query Task, which returns the attribute fields as set in the Feature Layer outFields property. I was able to use the queryFeatures method prior to switching to version 3.9, so I suspect this is a bug.

Has anyone else has encountered this issue?

Outcomes