<?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 Help with Feature Layer SELECTION_SUBTRACT in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/help-with-feature-layer-selection-subtract/m-p/658479#M14731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having problems removing a selected feature from my feature layers.&amp;nbsp; I am getting the correct feature selected, but the actual removal of the graphic is not working.&amp;nbsp; The code below shows one of my feature layer selections with the SELECTION_SUBTRACT method, and its responder "removeFeaturesHandler".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;case "TEL=COMNT":
&amp;nbsp;&amp;nbsp; cmntLayer.selectFeatures(remQuery, FeatureLayer.SELECTION_SUBTRACT,
 new AsyncResponder(removeFeaturesHandler, removeFeaturesFault));

protected function removeFeaturesHandler(features:Array, token:Object = null):void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var remgraphic:Graphic in features)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.remove(remgraphic);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been debugging this and the remgraphic variable is populated with a graphic id, but it doesn't correspond to any of the graphic ids I see in the graphicProvider array.&amp;nbsp; Where am I going wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2011 01:35:07 GMT</pubDate>
    <dc:creator>DaveEaton</dc:creator>
    <dc:date>2011-12-01T01:35:07Z</dc:date>
    <item>
      <title>Help with Feature Layer SELECTION_SUBTRACT</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/help-with-feature-layer-selection-subtract/m-p/658479#M14731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having problems removing a selected feature from my feature layers.&amp;nbsp; I am getting the correct feature selected, but the actual removal of the graphic is not working.&amp;nbsp; The code below shows one of my feature layer selections with the SELECTION_SUBTRACT method, and its responder "removeFeaturesHandler".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;case "TEL=COMNT":
&amp;nbsp;&amp;nbsp; cmntLayer.selectFeatures(remQuery, FeatureLayer.SELECTION_SUBTRACT,
 new AsyncResponder(removeFeaturesHandler, removeFeaturesFault));

protected function removeFeaturesHandler(features:Array, token:Object = null):void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var remgraphic:Graphic in features)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.remove(remgraphic);&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been debugging this and the remgraphic variable is populated with a graphic id, but it doesn't correspond to any of the graphic ids I see in the graphicProvider array.&amp;nbsp; Where am I going wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2011 01:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/help-with-feature-layer-selection-subtract/m-p/658479#M14731</guid>
      <dc:creator>DaveEaton</dc:creator>
      <dc:date>2011-12-01T01:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Feature Layer SELECTION_SUBTRACT</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/help-with-feature-layer-selection-subtract/m-p/658480#M14732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should anyone stumble across this thread...the problem I was having was when I initially rendered the features I was using FeatureLayer.MODE_ON_DEMAND instead of using FeatureLayer.SELECTION_ADD.&amp;nbsp; Everything works like a charm now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 21:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/help-with-feature-layer-selection-subtract/m-p/658480#M14732</guid>
      <dc:creator>DaveEaton</dc:creator>
      <dc:date>2011-12-05T21:15:10Z</dc:date>
    </item>
  </channel>
</rss>

