<?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 Feature Layer Automatic Select in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480401#M10967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a number of feature layers in an application that I would like to toggle selectability for. I am trying to mimic the functionality that is exhibited in the Edit widget. I would like have a set of feature layers selectable by default. However, when the user selects my widget's tool, I would like to toggle off the selectability of my feature layers until the user stops using my widget's tool. Could someone point me in the right direction? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2012 13:32:00 GMT</pubDate>
    <dc:creator>TylerWaring</dc:creator>
    <dc:date>2012-09-26T13:32:00Z</dc:date>
    <item>
      <title>Feature Layer Automatic Select</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480401#M10967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a number of feature layers in an application that I would like to toggle selectability for. I am trying to mimic the functionality that is exhibited in the Edit widget. I would like have a set of feature layers selectable by default. However, when the user selects my widget's tool, I would like to toggle off the selectability of my feature layers until the user stops using my widget's tool. Could someone point me in the right direction? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 13:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480401#M10967</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2012-09-26T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Automatic Select</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480402#M10968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tyler,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This might help you...some links which describe what needs to be done to automatically add a layer to the map when a widget is opened.&amp;nbsp; I use this to show where streetview is available by adding a layer I created to the map when the streetview widget is opened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/57108-Show-layer-when-widget-opens"&gt;http://forums.arcgis.com/threads/57108-Show-layer-when-widget-opens&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/14345-FlexViewer-2.1-Add-Layer-to-the-map-when-a-widget-is-activated"&gt;http://forums.arcgis.com/threads/14345-FlexViewer-2.1-Add-Layer-to-the-map-when-a-widget-is-activated&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 09:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480402#M10968</guid>
      <dc:creator>philippschnetzer</dc:creator>
      <dc:date>2012-09-27T09:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Automatic Select</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480403#M10969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tyler,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is extended ESRI &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq0000001r000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;sample&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-size:1;"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&lt;SPAN&gt;&amp;lt;s:Application xmlns:fx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ns.adobe.com/mxml/2009" rel="nofollow noopener noreferrer" target="_blank"&gt;http://ns.adobe.com/mxml/2009&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark"
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.esri.com/2008/ags&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; initialize="application1_initializeHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pageTitle="Using the Editor component"&amp;gt;
 &amp;lt;!--
 This sample shows you how to use the editor component.
 --&amp;gt;
 
 &amp;lt;s:layout&amp;gt;
&amp;nbsp; &amp;lt;s:VerticalLayout/&amp;gt;
 &amp;lt;/s:layout&amp;gt;
 
 &amp;lt;fx:Style&amp;gt;
&amp;nbsp; @namespace s "library://ns.adobe.com/flex/spark";
&amp;nbsp; @namespace mx "library://ns.adobe.com/flex/mx";
&lt;SPAN&gt;&amp;nbsp; @namespace esri "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.esri.com/2008/ags&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;
&amp;nbsp; 
&amp;nbsp; esri|InfoWindow
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; background-color: #FFFFFF;
&amp;nbsp;&amp;nbsp; border-thickness: 2;
&amp;nbsp; }
 &amp;lt;/fx:Style&amp;gt;
 
 &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import mx.events.FlexEvent;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; protected function application1_initializeHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; myEditor.featureLayers = [ incidentsAreas ];
&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#B22222&amp;quot;;"&gt;protected function myToolActivityChange(event:Event):void
 {
 myEditor.editTool.deactivate();
 incidentsAreas.clearSelection();
 myEditor.featureLayers = boxMayToolActive.selected ? null : [ incidentsAreas ];
 myEditor.map = boxMayToolActive.selected ? null : myMap;
 }&lt;/SPAN&gt;

&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;
 
 &amp;lt;fx:Declarations&amp;gt;
&lt;SPAN&gt;&amp;nbsp; &amp;lt;esri:GeometryService id="myGeometryService" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;
 &amp;lt;/fx:Declarations&amp;gt;
 
 &lt;SPAN style="color:&amp;quot;#B22222&amp;quot;;"&gt;&amp;lt;s:HGroup width="100%"
 horizontalAlign="center"&amp;gt;
 &amp;lt;s:CheckBox label="My Tool is Active" 
 id="boxMayToolActive"
 selected="false"
 fontSize="18"
 change="myToolActivityChange(event)"/&amp;gt;
 &amp;lt;/s:HGroup&amp;gt;&lt;/SPAN&gt; 
 
 &amp;lt;esri:Map id="myMap" wrapAround180="true"&amp;gt;
&amp;nbsp; &amp;lt;esri:extent&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent id="socal"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmin="-13471000" ymin="3834000" xmax="-12878000" ymax="4124000"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="102100"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&lt;SPAN&gt;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;
&amp;nbsp; &amp;lt;esri:FeatureLayer id="incidentsAreas"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mode="snapshot"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFields="[data_security,description]"
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;
 &amp;lt;/esri:Map&amp;gt;
 
 &amp;lt;esri:Editor id="myEditor"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="100%" height="200"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryService="{myGeometryService}"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map="{myMap}"/&amp;gt;
&amp;lt;/s:Application&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480403#M10969</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2021-12-11T21:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer Automatic Select</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480404#M10970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for replying Ivan and Phillip, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that I may be venturing off into no person�??s land. I am trying my best to code my way toward an editing solution that has all of the functionality of the Edit widget but with the added value of attribute validation. There is currently no way to validate attribution for new or existing features using the Editor class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have decided to move ahead and create a custom tool that utilizes the draw tool to create an initial graphic. Once the graphic is completed, I then popup an infoWindow that is used to enter (textInput) or select (comboBox) field attributes. Once the field attributes are entered and the user clicks the OK button, a number of validation checks are run before passing the drawn graphic and attributes to the featureLayer using the applyEdits method. This all works rather well but I still need to offer the user the ability to edit the attributes and geometries of existing features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To edit the attributes, I plan to use an attribute inspector. Though I have not yet implemented the attribute inspector I believe it will work well for my purposes but I cannot figure out a way to provide the user with the ability to alter the geometries of existing features. However, I cannot figure out a way to decouple the select/edit geometry functionality from the edit widget so that I can create features and validate attributes, update and validate attributes and edit geometry. I am looking for some kind of way that I can toggle my featureLayer�??s selectability&amp;nbsp; on or off depending on if the user is creating a new feature. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas or suggestions? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Tyler&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 13:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/feature-layer-automatic-select/m-p/480404#M10970</guid>
      <dc:creator>TylerWaring</dc:creator>
      <dc:date>2012-09-27T13:55:18Z</dc:date>
    </item>
  </channel>
</rss>

