<?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: editingEnabled Property is always return as True for feature layers in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086415#M1027</link>
    <description>&lt;P&gt;This is a bug in the ArcGIS API for JavaScript - that &lt;EM&gt;editingEnabled&lt;/EM&gt; is always true.&lt;/P&gt;&lt;P&gt;However, you can take advantage of the &lt;STRONG&gt;sourceJSON&lt;/STRONG&gt; property, which includes all the REST metadata for the service.&lt;/P&gt;&lt;P&gt;Specifically, &lt;STRONG&gt;layer.sourceJSON.capabilities&lt;/STRONG&gt; will show the available capabilities, including the editing settings.&lt;/P&gt;&lt;P&gt;For example, if editing is enabled on a hosted feature layer (depending on what other editing options have been set):&lt;BR /&gt;&lt;EM&gt;Create,Delete,Query,Update,Editing,Sync&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And if the editing is not enabled, something like:&lt;BR /&gt;&lt;EM&gt;Query,Sync&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Aug 2021 00:02:10 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2021-08-06T00:02:10Z</dc:date>
    <item>
      <title>editingEnabled Property is always return as True for feature layers</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1085278#M1022</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I have hosted two feature layers in ArcGIS Online 10.8 and consumed it as portal items in my webmap application using ESRI Javascript API 4.19. I have enabled editing for one feature layer and not enabled the editing for another feature layer since it is read-only.&lt;/P&gt;&lt;P&gt;I shared these two layers to an user account (named 'test_user') which has the role of 'users'. when I logged into the webmap application using 'test_user' account, I am able to retrieve these two layers from portal items.&lt;/P&gt;&lt;P&gt;But when looking at&amp;nbsp;'&lt;STRONG&gt;editingEnabled&lt;/STRONG&gt;' Property of both layers, it returns as &lt;STRONG&gt;True. &lt;/STRONG&gt;But actually&amp;nbsp;for one feature layer, it should return as &lt;STRONG&gt;False. &lt;/STRONG&gt;Even if I untick the '&lt;STRONG&gt;Editing Enabled&lt;/STRONG&gt;' option for hosted feature layers in ArcGIS Online, it's still return as &lt;STRONG&gt;True &lt;/STRONG&gt;in the application&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.map.layers.forEach(function (layer, index) {
      console.log(layer.editingEnabled);
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Suggest me a method to get the edit access of feature layer in Javascript API. Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 12:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1085278#M1022</guid>
      <dc:creator>MayoTestUser</dc:creator>
      <dc:date>2021-08-03T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: editingEnabled Property is always return as True for feature layers</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086026#M1024</link>
      <description>&lt;P&gt;I too, have a similar issue.&amp;nbsp; I have several hosted feature services set to "not editable" within the settings tab on AGOL.&amp;nbsp; When these are pulled into ArcGIS Pro, they become editable.&amp;nbsp; The setting in not inherited from the source.&amp;nbsp; How do I restrict users from editing the portal layers.&amp;nbsp; This is a significant issue for us.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 00:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086026#M1024</guid>
      <dc:creator>LindaKoch1</dc:creator>
      <dc:date>2021-08-05T00:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: editingEnabled Property is always return as True for feature layers</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086415#M1027</link>
      <description>&lt;P&gt;This is a bug in the ArcGIS API for JavaScript - that &lt;EM&gt;editingEnabled&lt;/EM&gt; is always true.&lt;/P&gt;&lt;P&gt;However, you can take advantage of the &lt;STRONG&gt;sourceJSON&lt;/STRONG&gt; property, which includes all the REST metadata for the service.&lt;/P&gt;&lt;P&gt;Specifically, &lt;STRONG&gt;layer.sourceJSON.capabilities&lt;/STRONG&gt; will show the available capabilities, including the editing settings.&lt;/P&gt;&lt;P&gt;For example, if editing is enabled on a hosted feature layer (depending on what other editing options have been set):&lt;BR /&gt;&lt;EM&gt;Create,Delete,Query,Update,Editing,Sync&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And if the editing is not enabled, something like:&lt;BR /&gt;&lt;EM&gt;Query,Sync&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 00:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086415#M1027</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-08-06T00:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: editingEnabled Property is always return as True for feature layers</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086457#M1029</link>
      <description>&lt;P&gt;Many Thanks Bjorn, it works well !&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 05:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/editingenabled-property-is-always-return-as-true/m-p/1086457#M1029</guid>
      <dc:creator>MayoTestUser</dc:creator>
      <dc:date>2021-08-06T05:34:46Z</dc:date>
    </item>
  </channel>
</rss>

