<?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: QueryFeatures does not populate all attributes in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277961#M6563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So it seems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, if I explicitly set returnGeometry = false I'd expect no geometries to be returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 06:30:35 GMT</pubDate>
    <dc:creator>BerendVeldkamp</dc:creator>
    <dc:date>2011-12-13T06:30:35Z</dc:date>
    <item>
      <title>QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277956#M6558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to get FeatureLayer.queryFeatures() working... Here' s my code (stripped down to the essentials):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var q:Query=new Query();
q.geometry=new Polygon([points], mainMap.spatialReference); // this is a small buffer around a clicked point
q.returnGeometry=false;

var fl:FeatureLayer=GetMyFeatureLayer();
fl.outFields=["*"]
fl.useAMF=false;
fl.addEventListener(FeatureLayerEvent.QUERY_FEATURES_COMPLETE, featureLayerQueryComplete);
fl.queryFeatures(q, null);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;When the query is executed I use Firebug to examine the actual request. This tells me that &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Outfields is set correctly, also if I specify a subsets of fields, e.g. ["field1", "field2"]&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;returnGeometry is always set to true, even if I set it to false&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;All requested field values are returned&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;When I examine the result values in the featureLayerQueryComplete event handler, only the objectid and the display field attributes are set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function featureLayerQueryComplete(event:FeatureLayerEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature:Graphic=event.featureSet.features[0];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Why can't I set returnGeometry to false?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why are some fields not populated?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 13:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277956#M6558</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-12-06T13:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277957#M6559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some more information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before adding the FeatureLayer to the map, I set it's outFields to ["*"]. Now queryFeatures() populates all attributes properly, at least the ones that I set in the &lt;/SPAN&gt;&lt;STRONG&gt;Query's&lt;/STRONG&gt;&lt;SPAN&gt; outFields. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only question remaining is why the geometry is returned, even though query.returnGeometry is set to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 12:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277957#M6559</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-12-09T12:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277958#M6560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Berend,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The fact that the geometry is returned when the return fields is set to * has been addressed in ArcGIS Server 10. You will have to deal with this undesired behavior until you upgrade your server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 12:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277958#M6560</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-12-09T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277959#M6561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, that's good to know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 13:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277959#M6561</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-12-09T13:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277960#M6562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FeatureLayer.queryFeatures() always returns geometry since it tries to return the features it has already loaded if they satisfy the query and they will have geometries so that can be shown on the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 20:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277960#M6562</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-12-09T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFeatures does not populate all attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277961#M6563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So it seems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, if I explicitly set returnGeometry = false I'd expect no geometries to be returned.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 06:30:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/queryfeatures-does-not-populate-all-attributes/m-p/277961#M6563</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-12-13T06:30:35Z</dc:date>
    </item>
  </channel>
</rss>

