<?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: Not able to delete a feature for editable feature layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424689#M39074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check your feature service&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/220987_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;to active delete in feature services required to marked as active...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 11:07:02 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2016-09-06T11:07:02Z</dc:date>
    <item>
      <title>Not able to delete a feature for editable feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424688#M39073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to delete the feature from editable feature layer, While i am able to create and update the feature. Here the scenario is to delete the existing feature and create the new feature and update the attributes. PFB code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt; var newFeatureLayer = new FeatureLayer(urlparcel);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; newFeatureLayer.on("edits-complete", function(evt) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; if(evt.adds.length &amp;gt;0 &amp;amp;&amp;amp; evt.adds[0].success == true)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; {.....}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; else if(evt.updates.length &amp;gt;0 &amp;amp;&amp;amp; evt.updates[0].success == true)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; {...}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;else if(evt.updates.length &amp;gt;0 &amp;amp;&amp;amp; evt.updates[0].success == true)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; {.....}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG&gt;newFeatureLayer.applyEdits(null, null, [existingFeature]);&lt;/STRONG&gt; // existing feature is the selected feature on map load and to be deleted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;var newUGraphics = new Graphic(newGeometry); // newGeometry is the new selected geometry and need to be created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;newFeatureLayer.applyEdits([newUGraphics],null,null);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "on&amp;nbsp;&lt;SPAN&gt;edits-complete"&amp;nbsp;&lt;/SPAN&gt;event is triggering, when i am trying to create feature but not on deleting the existing feature. And while creating feature in "&lt;SPAN&gt;edits-complete" function , though it smoothly creating the feature&amp;nbsp;but one error&amp;nbsp;occurred at console "init.js:182 Error: Unable to complete operation." &amp;nbsp;I believe this is the error for delete operation which was not happened properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me on how the feature has to deleted from editable feature layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaikh Rizuan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 08:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424688#M39073</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2016-09-06T08:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete a feature for editable feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424689#M39074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check your feature service&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/220987_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;to active delete in feature services required to marked as active...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 11:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424689#M39074</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-09-06T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete a feature for editable feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424690#M39075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is there...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 11:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424690#M39075</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2016-09-06T11:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete a feature for editable feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424691#M39076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It starts&amp;nbsp;working when the new feature is created first and then deleteting the existing one.. earlier i way trying to delete first then creating the feature.&lt;/P&gt;&lt;P&gt;I don't &amp;nbsp;know what may be the issue, if i delete the feature first and then create.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 06:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424691#M39076</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2016-09-08T06:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to delete a feature for editable feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424692#M39077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please close this thread and mark as answered...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2016 15:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-able-to-delete-a-feature-for-editable-feature/m-p/424692#M39077</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-09-08T15:44:10Z</dc:date>
    </item>
  </channel>
</rss>

