<?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: How to catch delete event on Editor widget. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1529610#M85538</link>
    <description>&lt;P&gt;For future reference, this is possible by overwriting the deleteFeatureFromWorkflow function. I do it like so:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    const originalDeleteFeatureFromWorkflow = this.editor.deleteFeatureFromWorkflow;

    this.editor.deleteFeatureFromWorkflow = async () =&amp;gt; {
      const data = this.editor.activeWorkflow.data;

      if ('rootFeature' in data) {
        const featureToDelete = data.rootFeature;

        return originalDeleteFeatureFromWorkflow.apply(this.editor, [data.rootFeature]);
      } else {
        console.warn('rootFeature is not available on the active workflow data');
      }
    };&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 29 Aug 2024 18:04:44 GMT</pubDate>
    <dc:creator>JMMFIRE</dc:creator>
    <dc:date>2024-08-29T18:04:44Z</dc:date>
    <item>
      <title>How to catch delete event on Editor widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1401888#M84147</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;I need to catch a moment when user clicks on delete after selecting feature on the map among existing. And be able to know its globalid attribute value.&lt;/P&gt;&lt;P&gt;Does any one has an idea how to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 11:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1401888#M84147</guid>
      <dc:creator>AnastasiiaDzundza</dc:creator>
      <dc:date>2024-03-28T11:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch delete event on Editor widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1402231#M84156</link>
      <description>&lt;P&gt;You would listen to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#event-edits" target="_blank" rel="noopener"&gt;edits event&lt;/A&gt; of the Layer you are interested in. The Editor itself will not give you this information.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 20:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1402231#M84156</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-03-28T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch delete event on Editor widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1404431#M84191</link>
      <description>&lt;P&gt;Thank you a lot, for answer.&lt;/P&gt;&lt;P&gt;In the event that comes on 'edits', there is array of features were deleted. But int's object there is only one attribute returned 'objectId'.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-02 at 12.40.08.png" style="width: 684px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99722i394BE7BC85B0359D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-02 at 12.40.08.png" alt="Screenshot 2024-04-02 at 12.40.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way to configure the layer to get at list global id in this event or maybe all of the attributes?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 09:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1404431#M84191</guid>
      <dc:creator>AnastasiiaDzundza</dc:creator>
      <dc:date>2024-04-02T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch delete event on Editor widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1529610#M85538</link>
      <description>&lt;P&gt;For future reference, this is possible by overwriting the deleteFeatureFromWorkflow function. I do it like so:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    const originalDeleteFeatureFromWorkflow = this.editor.deleteFeatureFromWorkflow;

    this.editor.deleteFeatureFromWorkflow = async () =&amp;gt; {
      const data = this.editor.activeWorkflow.data;

      if ('rootFeature' in data) {
        const featureToDelete = data.rootFeature;

        return originalDeleteFeatureFromWorkflow.apply(this.editor, [data.rootFeature]);
      } else {
        console.warn('rootFeature is not available on the active workflow data');
      }
    };&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Aug 2024 18:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-catch-delete-event-on-editor-widget/m-p/1529610#M85538</guid>
      <dc:creator>JMMFIRE</dc:creator>
      <dc:date>2024-08-29T18:04:44Z</dc:date>
    </item>
  </channel>
</rss>

