<?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 Updating a Feature Table on Feature Layer Change in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updating-a-feature-table-on-feature-layer-change/m-p/685219#M63784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've using the example of Feature Table from ESRI. However, I'm trying to update the table based on the feature layer that is visible. I'm trying to create a variable that is showing the visible layer and link that variable to the feature table. What is the property to get the current layer being displayed? Would I also have to create a table for each layer? All my layers have the same field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for all your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var layer = function changetable () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (CNTYmm.visible || HUC8mm.visible || WPRmm.visible)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {get actual layer being displayed}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else (CNTYin.visible || HUC8in.visible || WPRin.visible)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {get actual layer being displayed}};


my FeatureTable = new FeatureTable({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "featureLayer": layer,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "outFields": ["NAME", "Units"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "map" : map}, 'TestTable');

myFeatureTable.startup();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:49:25 GMT</pubDate>
    <dc:creator>NMWater</dc:creator>
    <dc:date>2021-12-12T04:49:25Z</dc:date>
    <item>
      <title>Updating a Feature Table on Feature Layer Change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updating-a-feature-table-on-feature-layer-change/m-p/685219#M63784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've using the example of Feature Table from ESRI. However, I'm trying to update the table based on the feature layer that is visible. I'm trying to create a variable that is showing the visible layer and link that variable to the feature table. What is the property to get the current layer being displayed? Would I also have to create a table for each layer? All my layers have the same field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks for all your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var layer = function changetable () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (CNTYmm.visible || HUC8mm.visible || WPRmm.visible)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {get actual layer being displayed}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else (CNTYin.visible || HUC8in.visible || WPRin.visible)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {get actual layer being displayed}};


my FeatureTable = new FeatureTable({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "featureLayer": layer,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "outFields": ["NAME", "Units"],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "map" : map}, 'TestTable');

myFeatureTable.startup();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updating-a-feature-table-on-feature-layer-change/m-p/685219#M63784</guid>
      <dc:creator>NMWater</dc:creator>
      <dc:date>2021-12-12T04:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a Feature Table on Feature Layer Change</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updating-a-feature-table-on-feature-layer-change/m-p/685220#M63785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Francisco, any update on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 19:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/updating-a-feature-table-on-feature-layer-change/m-p/685220#M63785</guid>
      <dc:creator>ChristopherJohnson1</dc:creator>
      <dc:date>2016-10-21T19:47:08Z</dc:date>
    </item>
  </channel>
</rss>

