<?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: Refresh featureTable doesn't work properly in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1059070#M73160</link>
    <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this issue and we confirmed this indeed is an issue. I will update you as soon as this issue is fixed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 17:33:33 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2021-05-18T17:33:33Z</dc:date>
    <item>
      <title>Refresh featureTable doesn't work properly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1058935#M73154</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;I am trying to update the feature table content when another feature layer is selected.&lt;/P&gt;&lt;P&gt;I have created a feature table in the beginning:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const featureTable = new FeatureTable({
  view: view, 
  layer: featureLayer,
  container: document.getElementById("tableDiv")
});&lt;/LI-CODE&gt;&lt;P&gt;Then I want to update the table content with something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; switch(selectedLayer){
                    case "layer01":
                        layer01.visible = true;
                        layer02.visible = false;
                        layer03.visible=false;
                        featureTable.layer = layer01;
                        featureTable.refresh();
                        break;
                    case "layer02":
                        layer02.visible = true;
                        layer03.visible = false;
                        layer04.visible = false;
                        featureTable.layer = layer02;
                        featureTable.refresh();
                        break;
                    case "layer03":
                        layer03.visible = true;
                        layer01.visible=false;
                        layer02.visible = false;
                        featureTable.layer = layer03;
                        featureTable.refresh();
                        break;
                }&lt;/LI-CODE&gt;&lt;P&gt;But as a result, when I select Layer02, only the table title updates. The content is somehow not showing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YingwenDeng_0-1621344727106.png" style="width: 714px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13524i96B4C61EBFECEE80/image-dimensions/714x154?v=v2" width="714" height="154" role="button" title="YingwenDeng_0-1621344727106.png" alt="YingwenDeng_0-1621344727106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone could please help me? Thanks!&lt;/P&gt;&lt;P&gt;(My temporary solution is to add three feature tables in the app and use "display = 'none' to hide the ones that are not selected..." but I guess there must be better solutions.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 13:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1058935#M73154</guid>
      <dc:creator>YingwenDeng</dc:creator>
      <dc:date>2021-05-18T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh featureTable doesn't work properly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1059070#M73160</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this issue and we confirmed this indeed is an issue. I will update you as soon as this issue is fixed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 17:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1059070#M73160</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-05-18T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh featureTable doesn't work properly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1065703#M73422</link>
      <description>&lt;P&gt;Hi, just wanted to let you know that we addressed this for our upcoming 4.20 release and you should no longer experience this issue with the table not refreshing properly. Thanks for letting us know.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 17:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/refresh-featuretable-doesn-t-work-properly/m-p/1065703#M73422</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2021-06-07T17:40:21Z</dc:date>
    </item>
  </channel>
</rss>

