<?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: FeatureTable selected row not highlighted on map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209748#M78592</link>
    <description>&lt;P&gt;Hello and thank you for the response!&lt;/P&gt;&lt;P&gt;I did not post a larger snippet as the program is quite large. Inside the InitWidgets function I set the layer to the FeatureTable this way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layerList.on("trigger-action", function(event: { item: any; action: any }) {
  const layer = event.item.layer;
  layer
    .createFeatureLayer()
    .then((featureLayer: FeatureLayer) =&amp;gt; {
      globalFeatureTable.layer = featureLayer;
      return featureLayer.load();
    })
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;where the layerList is a&amp;nbsp;&lt;SPAN&gt;LayerList widget.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 05:14:47 GMT</pubDate>
    <dc:creator>PL1</dc:creator>
    <dc:date>2022-09-06T05:14:47Z</dc:date>
    <item>
      <title>FeatureTable selected row not highlighted on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209644#M78584</link>
      <description>&lt;P&gt;Hello I am using arcgis/core version 4.21.2. I am creating a web application based on ArcGIS API for JavaScript.&lt;/P&gt;&lt;P&gt;My problem is that I am not able to highlight selected rows on map. My code is the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const [featureTable, setFeatureTable] = useState(null as any);

useEffect(() =&amp;gt; {
    const map = new Map({
      basemap: "arcgis-topographic",
      layers: layers.map((layer, index) =&amp;gt; layer.mapImageLayer),
    });
    
    const view = new MapView({
      zoom: INITIAL_ZOOM,
      center: LOCATION_CENTER,
      map: map,
    });

    const initWidgetParams = {
      allotmentRef: allotmentRef,
      globalFeatureTable: new FeatureTable({
        view: view,
        menuConfig: {
          items: []
        }
      }),
      featureTableVisibility: false,
      view: view
    };

    view.when(() =&amp;gt; { 
      initWidgets(initWidgetParams)
    });

    setFeatureTable(initWidgetParams.globalFeatureTable);
  }, []);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the code is clarifying.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 09:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209644#M78584</guid>
      <dc:creator>PL1</dc:creator>
      <dc:date>2022-09-05T09:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable selected row not highlighted on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209697#M78588</link>
      <description>&lt;P&gt;At a glance, it doesn't look like you are adding the layer to the FeatureTable.&lt;/P&gt;&lt;P&gt;Would need a simpler codepen or similar if that doesn't fix it.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 16:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209697#M78588</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-09-05T16:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureTable selected row not highlighted on map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209748#M78592</link>
      <description>&lt;P&gt;Hello and thank you for the response!&lt;/P&gt;&lt;P&gt;I did not post a larger snippet as the program is quite large. Inside the InitWidgets function I set the layer to the FeatureTable this way&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layerList.on("trigger-action", function(event: { item: any; action: any }) {
  const layer = event.item.layer;
  layer
    .createFeatureLayer()
    .then((featureLayer: FeatureLayer) =&amp;gt; {
      globalFeatureTable.layer = featureLayer;
      return featureLayer.load();
    })
})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;where the layerList is a&amp;nbsp;&lt;SPAN&gt;LayerList widget.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 05:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featuretable-selected-row-not-highlighted-on-map/m-p/1209748#M78592</guid>
      <dc:creator>PL1</dc:creator>
      <dc:date>2022-09-06T05:14:47Z</dc:date>
    </item>
  </channel>
</rss>

