<?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 FeatureTable v4.26 - Show confirmation prompt for data edits/updates in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1288871#M81152</link>
    <description>&lt;P&gt;&lt;SPAN&gt;How to show confirmation prompt for data edits/updates in FeatureTable?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 12:54:51 GMT</pubDate>
    <dc:creator>Ranga_Tolapi</dc:creator>
    <dc:date>2023-05-13T12:54:51Z</dc:date>
    <item>
      <title>FeatureTable v4.26 - Show confirmation prompt for data edits/updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1288871#M81152</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to show confirmation prompt for data edits/updates in FeatureTable?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 12:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1288871#M81152</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2023-05-13T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable v4.26 - Show confirmation prompt for data edits/updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1289471#M81168</link>
      <description>&lt;P&gt;To show a confirmation prompt for data edits or updates in a FeatureTable, you can use the beforeApplyEdits event and the window.confirm() method. Here's an example of how you can achieve this:&lt;/P&gt;&lt;P&gt;javascript&lt;BR /&gt;Copy code&lt;BR /&gt;// Assuming you have a FeatureTable instance called 'featureTable'&lt;BR /&gt;featureTable.on("beforeApplyEdits", function (event) {&lt;BR /&gt;var confirmMessage = "Are you sure you want to apply the edits?";&lt;BR /&gt;var confirmed = window.confirm(confirmMessage);&lt;/P&gt;&lt;P&gt;if (!confirmed) {&lt;BR /&gt;event.preventDefault(); // Prevent the edits from being applied&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;In the above code, the beforeApplyEdits event is triggered before the edits are applied to the feature table. Inside the event handler, a confirmation prompt is shown using window.confirm(), displaying the message "Are you sure you want to apply the edits?". If the user confirms the action, the edits will be applied as usual. If the user cancels or chooses not to proceed, the event.preventDefault() method is called to prevent the edits from being applied.&lt;/P&gt;&lt;P&gt;By implementing this code, you can show a confirmation prompt to the user before applying any edits or updates in the FeatureTable.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 05:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1289471#M81168</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2023-05-16T05:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable v4.26 - Show confirmation prompt for data edits/updates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1289478#M81171</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/637475"&gt;@RachelGomez&lt;/a&gt;&amp;nbsp;thank you for the response. I do not see "beforeApplyEdits" event applicable to FeatureTable in version 4.x?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 06:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-v4-26-show-confirmation-prompt-for/m-p/1289478#M81171</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2023-05-16T06:15:16Z</dc:date>
    </item>
  </channel>
</rss>

