<?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 setEditable() not honored after layer is loaded in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243193#M22505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Kelly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The setEditable method is only valid for feature layers created from a feature collection not for layers in a feature service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use this method on a feature service layer you should see the following message in the developer console: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 02:58:25 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-03-15T02:58:25Z</dc:date>
    <item>
      <title>FeatureLayer setEditable() not honored after layer is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243192#M22504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my current application I load various FeatureLayers that I use for managing an edit environment.&amp;nbsp; I recently had a need to implement the FeatureLayer.setEditable(editable) and FeatureLayer.isEditable() methods to override the FeatureService capablilities.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the application starts, I obtain paramater information from a config object that indicates if the desired FeatureLayer is editable. This functionality is based on custom application business logic.&amp;nbsp; In the FeatureService the layer is editable but I assume that I can use the FeatureLayer.setEditable(editable) method to override the edit state so I can control when a specific FeatureLayer is editable by the user.&amp;nbsp; When I instantiate the FeatureLayer I set the FeatureLayer.setEditable(false).&amp;nbsp; I am able to review the object prior to it loading and it appears as though the _editable state = false (see image below).&amp;nbsp; After the layer is added to the map using map.addLayers() the _editable property is RESET back to true. It appears to me like it is not honoring any current edit state but rather using the edit state based on the Feature Service capabilities.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't the intent of the FeatureLayer.setEditable(editable) method to override the edit state?&amp;nbsp; Am I implementing it incorrectly?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that I can go back ...loop through my edit layers within the "onLayersAddResult" handler and reset the property but that means more code.&amp;nbsp; Also, when I set the editable state, I have the object that I need at the moment that I instantiate the FeatureLayer (prior to it being added to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestions? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22620[/ATTACH][ATTACH=CONFIG]22621[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 21:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243192#M22504</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-03-14T21:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer setEditable() not honored after layer is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243193#M22505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Kelly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The setEditable method is only valid for feature layers created from a feature collection not for layers in a feature service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use this method on a feature service layer you should see the following message in the developer console: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 02:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243193#M22505</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-03-15T02:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer setEditable() not honored after layer is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243194#M22506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The setEditable method is only valid for feature layers created from a feature collection not for layers in a feature service. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/setEditable&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you use this method on a feature service layer you should see the following message in the developer console: &lt;BR /&gt;&lt;BR /&gt;FeatureLayer:setEditable - this functionality is not yet supported for layer in a feature service&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kelly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your prompt response.&amp;nbsp; I see what you mean about it only working on a FeatureCollection. For some reason I overlooked that last important part of the documentation.&amp;nbsp; Since my last post I have found a work around solution to implement my business logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I did not use the .setEditable method after I loaded the FeatureLayer, I did not see the message that you described above. However I do not doubt it. Thanks again for your help.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 17:02:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-seteditable-not-honored-after-layer/m-p/243194#M22506</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-03-15T17:02:34Z</dc:date>
    </item>
  </channel>
</rss>

