<?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: Event Listener for &amp;quot;Update&amp;quot; button in Editor Widget - JavaScript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1320577#M82040</link>
    <description>&lt;P&gt;A workaround that I used is to override the default applyEdits method in the feature layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Code in typescript:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mapview.on('layerview-create', async (event) =&amp;gt; {
      if (event.layer.type === 'feature') {
        const eventLayer = event.layer as FeatureLayer;
        eventLayer['defaultApplyEdits'] = eventLayer.applyEdits;
        eventLayer.applyEdits = function (
          edits: __esri.FeatureLayerBaseApplyEditsEdits
        ) {
          console.log(edits);
          // apply your logic here
          return this.get&amp;lt;Function&amp;gt;('defaultApplyEdits').apply(this, arguments);
        };
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 10:03:03 GMT</pubDate>
    <dc:creator>MohammedZaki</dc:creator>
    <dc:date>2023-08-21T10:03:03Z</dc:date>
    <item>
      <title>Event Listener for "Update" button in Editor Widget - JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/307666#M28252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Javascript API for ArcGIS version 4. I have a map with one layer and Editor Widget where one value can be edited.&lt;/P&gt;&lt;P&gt;Is there a way to detect click on "update" button in the Editor Widget? I found the button class from web-page, but it seems to be a general name (&amp;lt;button class="esri-editor__control-button esri-button"&amp;gt;Update&amp;lt;/button&amp;gt;).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 06:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/307666#M28252</guid>
      <dc:creator>lxd</dc:creator>
      <dc:date>2019-05-29T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Event Listener for "Update" button in Editor Widget - JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1305553#M81616</link>
      <description>&lt;P&gt;I am facing the same problem. Is there somebody who can help?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:57:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1305553#M81616</guid>
      <dc:creator>DPT</dc:creator>
      <dc:date>2023-07-04T11:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Event Listener for "Update" button in Editor Widget - JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1320572#M82039</link>
      <description>&lt;P&gt;Any support with this, please?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/635113"&gt;@ESRI1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 09:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1320572#M82039</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-08-21T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Event Listener for "Update" button in Editor Widget - JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1320577#M82040</link>
      <description>&lt;P&gt;A workaround that I used is to override the default applyEdits method in the feature layer.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Code in typescript:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;mapview.on('layerview-create', async (event) =&amp;gt; {
      if (event.layer.type === 'feature') {
        const eventLayer = event.layer as FeatureLayer;
        eventLayer['defaultApplyEdits'] = eventLayer.applyEdits;
        eventLayer.applyEdits = function (
          edits: __esri.FeatureLayerBaseApplyEditsEdits
        ) {
          console.log(edits);
          // apply your logic here
          return this.get&amp;lt;Function&amp;gt;('defaultApplyEdits').apply(this, arguments);
        };
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/event-listener-for-quot-update-quot-button-in/m-p/1320577#M82040</guid>
      <dc:creator>MohammedZaki</dc:creator>
      <dc:date>2023-08-21T10:03:03Z</dc:date>
    </item>
  </channel>
</rss>

