<?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 Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524350#M85421</link>
    <description>&lt;P&gt;I update a Client-Side FeatureLayer by&amp;nbsp;calling featureLayer.applyEdits(edits), but featureLayer.source doesn't get updated.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 13:03:44 GMT</pubDate>
    <dc:creator>ForrestLin</dc:creator>
    <dc:date>2024-08-20T13:03:44Z</dc:date>
    <item>
      <title>Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524350#M85421</link>
      <description>&lt;P&gt;I update a Client-Side FeatureLayer by&amp;nbsp;calling featureLayer.applyEdits(edits), but featureLayer.source doesn't get updated.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 13:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524350#M85421</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-08-20T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524388#M85423</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You cannot use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source" target="_self"&gt;source&lt;/A&gt; to get the features that are added or updated once after the client-side feature layer is initialized. &amp;nbsp;You need to use FeatureLayer.queryFeatures to get the features in your client-side query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-20 at 7.13.39 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112920i986088DF57A64966/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-08-20 at 7.13.39 AM.png" alt="Screenshot 2024-08-20 at 7.13.39 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524388#M85423</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2024-08-20T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524396#M85424</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use FeatureTable with client-side FeatureLayer.&amp;nbsp;FeatureTable is not updated after&amp;nbsp;&lt;SPAN&gt;calling featureLayer.applyEdits(edits).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do I update&amp;nbsp;FeatureTable?&lt;/P&gt;&lt;P&gt;Please see my another post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-working-featuretable-using-client-side/m-p/1524078#M85410" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-working-featuretable-using-client-side/m-p/1524078#M85410&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Forrest&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524396#M85424</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-08-20T14:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524432#M85429</link>
      <description>&lt;P&gt;You can listen the layers "edit" event and call the featureTable refresh method.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#events-summary" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#events-summary&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Demo:&amp;nbsp;&lt;A href="https://codepen.io/odoe/pen/mdOJeYm?editors=0010" target="_blank"&gt;https://codepen.io/odoe/pen/mdOJeYm?editors=0010&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524432#M85429</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-08-20T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524447#M85430</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/7384"&gt;@ReneRubalcava&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works after calling&amp;nbsp;&lt;SPAN&gt;featureTable refresh method in&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;featureLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;edits&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;( editsResult&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;featureTable&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;refresh&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Forrest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524447#M85430</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-08-20T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue of Client-Side FeatureLayer: featureLayer.source not updated after calling featureLayer.applyEdits(edits)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524566#M85436</link>
      <description>&lt;P&gt;By the way, how to clear/remove all features in FeatureLayer?&lt;/P&gt;&lt;P&gt;Is it the right approach?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;clear&lt;/SPAN&gt;&lt;SPAN&gt;(): &lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;featureLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;queryFeatures&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;featureSet&lt;/SPAN&gt; &lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;edits&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;deleteFeatures:&amp;nbsp;featureSet.features&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;featureLayer&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;applyEdits&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;edits&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/SPAN&gt;&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;editsResult&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;featureTable&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;refresh&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 17:45:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-of-client-side-featurelayer-featurelayer/m-p/1524566#M85436</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2024-08-20T17:45:09Z</dc:date>
    </item>
  </channel>
</rss>

