<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Feature Layer queryFeatures in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688299#M64072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Noah! That was in fact the problem. I had been firing the query after the map.on("layers-add-result") event, and had forgotten that I moved the query outside of this event when I was debugging another error. It is working fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 13:19:06 GMT</pubDate>
    <dc:creator>ReneeMaxwell</dc:creator>
    <dc:date>2014-06-09T13:19:06Z</dc:date>
    <item>
      <title>Problem with Feature Layer queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688297#M64070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else has encountered this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688297#M64070</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2014-06-02T13:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Feature Layer queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688298#M64071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Renee,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't encountered this issue before, but I do know that setting outFields works if you wait for the feature layer to be loaded before performing the query. Are you able to upload a simple sample application (or code snippet) that reproduces this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 16:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688298#M64071</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-06-02T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Feature Layer queryFeatures</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688299#M64072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Noah! That was in fact the problem. I had been firing the query after the map.on("layers-add-result") event, and had forgotten that I moved the query outside of this event when I was debugging another error. It is working fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 13:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-feature-layer-queryfeatures/m-p/688299#M64072</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2014-06-09T13:19:06Z</dc:date>
    </item>
  </channel>
</rss>

