<?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 Using states to control editing in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-states-to-control-editing/m-p/562603#M12689</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'm trying to use states to turn on and off editing capabilities, and the states are changed on a button click.&amp;nbsp; Once the user clicks the button it activates the "editing" state, and the Feature Templates should appear - but they don't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Editor id="lebuEditor"
&amp;nbsp;&amp;nbsp; width="100%" height="100%"
&amp;nbsp;&amp;nbsp; geometryService="{myGeometryService}"
&amp;nbsp;&amp;nbsp; map="{mainMap}"
&amp;nbsp;&amp;nbsp; toolbarVisible="false"
&amp;nbsp;&amp;nbsp; includeIn="editing"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem might be that when I initially set it up, the editor feature layers stated on the application initialize.&amp;nbsp; How do I initialize when the state is changed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;protected function application_initializeHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; lebuEditor.featureLayers = [ lebuPoints, frenchPoints ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this seem right, or is it something else?&amp;nbsp; Anybody know how to get it to start when the state changes?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 20:03:59 GMT</pubDate>
    <dc:creator>MarcGuidry</dc:creator>
    <dc:date>2011-11-02T20:03:59Z</dc:date>
    <item>
      <title>Using states to control editing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-states-to-control-editing/m-p/562603#M12689</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'm trying to use states to turn on and off editing capabilities, and the states are changed on a button click.&amp;nbsp; Once the user clicks the button it activates the "editing" state, and the Feature Templates should appear - but they don't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Editor id="lebuEditor"
&amp;nbsp;&amp;nbsp; width="100%" height="100%"
&amp;nbsp;&amp;nbsp; geometryService="{myGeometryService}"
&amp;nbsp;&amp;nbsp; map="{mainMap}"
&amp;nbsp;&amp;nbsp; toolbarVisible="false"
&amp;nbsp;&amp;nbsp; includeIn="editing"/&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem might be that when I initially set it up, the editor feature layers stated on the application initialize.&amp;nbsp; How do I initialize when the state is changed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;protected function application_initializeHandler(event:FlexEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; lebuEditor.featureLayers = [ lebuPoints, frenchPoints ];
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this seem right, or is it something else?&amp;nbsp; Anybody know how to get it to start when the state changes?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 20:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-states-to-control-editing/m-p/562603#M12689</guid>
      <dc:creator>MarcGuidry</dc:creator>
      <dc:date>2011-11-02T20:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using states to control editing</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-states-to-control-editing/m-p/562604#M12690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, I figured it out using enterState event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 21:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-states-to-control-editing/m-p/562604#M12690</guid>
      <dc:creator>MarcGuidry</dc:creator>
      <dc:date>2011-11-02T21:56:31Z</dc:date>
    </item>
  </channel>
</rss>

