<?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: FeatureLayer SelectFeatures Function Arguments in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388102#M9073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings All!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayer.selectFeatures(q, FeatureLayer.SELECTION_ADD, new AsyncResponder(selectFeaturesHandler, selectFeaturesFault));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my widget code, I get an error thrown in AsyncResponder.as that says "Argument count mismatch ... Expected 1, got 2..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to get around this by adding a bogus temporary FeatureLayer to my widget code directly with the selectionComplete function pre-specified in the declaration and then running my selectFeatures against that, but when I do that I run into problems when trying to display the graphical output of the operation on my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess what I'm looking for is some sample code of using the selectFeatures on a Feature Layer defined in the main config.xml file that displays the selected features on the map and behaves as expected. If anyone can point me to some code I'd be extremely grateful! Thanks in advance ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 21:16:09 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-07-06T21:16:09Z</dc:date>
    <item>
      <title>FeatureLayer SelectFeatures Function Arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388099#M9070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to use the FeatureLayer.selectFeatures function but I can't seem to find an example that shows me the arguments to the handler function for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_featureLayer.selectFeatures(q, FeatureLayer.SELECTION_ADD, new AsyncResponder(selectFeaturesHandler, selectFeaturesFault));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the function parameters for selectFeaturesHandler?&amp;nbsp; Where do I find this documented?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 13:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388099#M9070</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-06-09T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer SelectFeatures Function Arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388100#M9071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you add a Responder the FeatureLayer.selectFeatures, you're going to get back an array of the graphics that have been added to your selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can write out your handler as&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function selectFeaturesHandler(features:Array):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // do what you need to do with the graphics
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;selectFeatures will fire the selectionComplete event&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#event:selectionComplete" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/FeatureLayer.html#event:selectionComplete&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Responder will refer to the FeatureLayerEvent&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which when responding to selectFeatures will return the features array&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html#features" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/events/FeatureLayerEvent.html#features&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When reading the docs, sometimes you just need to follow the breadcrumbs &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388100#M9071</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-12-11T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer SelectFeatures Function Arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388101#M9072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayerQueryRelated"&gt;Related Records sample&lt;/A&gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;Samples&lt;/A&gt; -&amp;gt; FeatureLayer -&amp;gt; RelatedRecords&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html?sample=FeatureLayerQueryRelatedMultiple"&gt;Multiple Related Records sample&lt;/A&gt;&lt;SPAN&gt; in &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;Samples&lt;/A&gt; -&amp;gt; FeatureLayer -&amp;gt; Multiple Related Records&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 05:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388101#M9072</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2011-06-13T05:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer SelectFeatures Function Arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388102#M9073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings All!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayer.selectFeatures(q, FeatureLayer.SELECTION_ADD, new AsyncResponder(selectFeaturesHandler, selectFeaturesFault));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my widget code, I get an error thrown in AsyncResponder.as that says "Argument count mismatch ... Expected 1, got 2..."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to get around this by adding a bogus temporary FeatureLayer to my widget code directly with the selectionComplete function pre-specified in the declaration and then running my selectFeatures against that, but when I do that I run into problems when trying to display the graphical output of the operation on my map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess what I'm looking for is some sample code of using the selectFeatures on a Feature Layer defined in the main config.xml file that displays the selected features on the map and behaves as expected. If anyone can point me to some code I'd be extremely grateful! Thanks in advance ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 21:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388102#M9073</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-07-06T21:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer SelectFeatures Function Arguments</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388103#M9074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See this link for what the AsyncResponder is expecting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/rpc/AsyncResponder.html"&gt;http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/rpc/AsyncResponder.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 23:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/featurelayer-selectfeatures-function-arguments/m-p/388103#M9074</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-08-01T23:09:15Z</dc:date>
    </item>
  </channel>
</rss>

