<?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: EB Custom widget - update features AND refresh DataSource in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/eb-custom-widget-update-features-and-refresh/m-p/1588433#M17549</link>
    <description>&lt;P&gt;Hi tssaus!&lt;/P&gt;&lt;P&gt;You can try below methods to refresh the dataSource:&lt;/P&gt;&lt;P&gt;dataSource.afterAddRecord(addedFeature)&lt;/P&gt;&lt;P&gt;dataSource.afterUpdateRecord(updatedRecord)&lt;/P&gt;&lt;P&gt;dataSource.afterDeleteRecordByIds(recordIds)&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 06:48:26 GMT</pubDate>
    <dc:creator>Allen_Zhang</dc:creator>
    <dc:date>2025-02-24T06:48:26Z</dc:date>
    <item>
      <title>EB Custom widget - update features AND refresh DataSource</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/eb-custom-widget-update-features-and-refresh/m-p/1578288#M17068</link>
      <description>&lt;P&gt;After calling applyEdits from the FeatureLayer object, the edits post successfully. However, in the map view, the edits do not refresh. I have a table like view that pulls the selectedRecords from the current DataSource (with&amp;nbsp;&lt;SPAN&gt;DataSourceComponent)&lt;/SPAN&gt;. I have to redo my selection for any updates to show in my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layer = ... // FeatureLayerDataSource#layer

const updateFeatures = // some updates...

const result = await layer.applyEdits({ updateFeatures: updateFeatures });

// result procesess successfully

layer.refresh() // this does nothing&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thought layer.refresh() was the ticket out but apparently not. How can I force an update?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/eb-custom-widget-update-features-and-refresh/m-p/1578288#M17068</guid>
      <dc:creator>tssaus</dc:creator>
      <dc:date>2025-01-23T16:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: EB Custom widget - update features AND refresh DataSource</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/eb-custom-widget-update-features-and-refresh/m-p/1588433#M17549</link>
      <description>&lt;P&gt;Hi tssaus!&lt;/P&gt;&lt;P&gt;You can try below methods to refresh the dataSource:&lt;/P&gt;&lt;P&gt;dataSource.afterAddRecord(addedFeature)&lt;/P&gt;&lt;P&gt;dataSource.afterUpdateRecord(updatedRecord)&lt;/P&gt;&lt;P&gt;dataSource.afterDeleteRecordByIds(recordIds)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 06:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/eb-custom-widget-update-features-and-refresh/m-p/1588433#M17549</guid>
      <dc:creator>Allen_Zhang</dc:creator>
      <dc:date>2025-02-24T06:48:26Z</dc:date>
    </item>
  </channel>
</rss>

