<?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 Selected rows in a FeatureTable in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1000935#M70794</link>
    <description>&lt;P&gt;There doesn't seem to be a way of getting the selected rows easily from a FeatureTable (v 4.17).&amp;nbsp;The 3.x version has the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featuretable-amd.html#selectedrows" target="_self"&gt;selectedRows&lt;/A&gt; property...am I missing something? Currently, I am using the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-selection-change" target="_self"&gt;selection-change&lt;/A&gt; event to write the added and removed property arrays to a separate array&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    featureTable.on('selection-change', (event) =&amp;gt; {
      if (event.added.length &amp;gt; 0) filterArray.push(event.added[0].feature.attributes[valueString]);
      if (event.removed.length === 1) {
        const i = filterArray.indexOf(event.removed[0].feature.attributes[valueString]);
        filterArray.splice(i, 1);
      } else if (event.removed.length &amp;gt; 0) {
        filterArray = [];
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 22:29:24 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2020-11-12T22:29:24Z</dc:date>
    <item>
      <title>Selected rows in a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1000935#M70794</link>
      <description>&lt;P&gt;There doesn't seem to be a way of getting the selected rows easily from a FeatureTable (v 4.17).&amp;nbsp;The 3.x version has the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/featuretable-amd.html#selectedrows" target="_self"&gt;selectedRows&lt;/A&gt; property...am I missing something? Currently, I am using the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#event-selection-change" target="_self"&gt;selection-change&lt;/A&gt; event to write the added and removed property arrays to a separate array&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;    featureTable.on('selection-change', (event) =&amp;gt; {
      if (event.added.length &amp;gt; 0) filterArray.push(event.added[0].feature.attributes[valueString]);
      if (event.removed.length === 1) {
        const i = filterArray.indexOf(event.removed[0].feature.attributes[valueString]);
        filterArray.splice(i, 1);
      } else if (event.removed.length &amp;gt; 0) {
        filterArray = [];
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 22:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1000935#M70794</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2020-11-12T22:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selected rows in a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1001018#M70797</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2839"&gt;@KenBuja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 4.x API reference, I cannot see the equivalent property of "selectedRows" which returns the name-value pair object in 3.x API.&lt;/P&gt;&lt;P&gt;In API 4.x, &lt;SPAN&gt;FeatureTable is still in Beta and new capabilities will be added in upcoming releases. For a more comprehensive list of limitations, please refer to the widget's&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html" target="_blank"&gt;API Reference&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 06:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1001018#M70797</guid>
      <dc:creator>KavishGhime3</dc:creator>
      <dc:date>2020-11-13T06:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selected rows in a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1139940#M76230</link>
      <description>&lt;P&gt;I still don't see selectedRows as API option. Is it safe to say it is still not available yet and the poster except is the best option for now?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 17:16:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1139940#M76230</guid>
      <dc:creator>MichaelKarikari1</dc:creator>
      <dc:date>2022-02-02T17:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selected rows in a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1151008#M76581</link>
      <description>&lt;P&gt;That would be a great feature!!&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2022 18:03:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1151008#M76581</guid>
      <dc:creator>ZachPorteous</dc:creator>
      <dc:date>2022-03-05T18:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selected rows in a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1226569#M79159</link>
      <description>&lt;P&gt;I had wondered about this as well, and it seems the accepted way to do it is to instantiate a global variable, then modify it using the data from the change event. This works fine (albeit a little clumsy), and there is a good example of it here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featuretable-map" target="_blank"&gt;Sandbox | Sample Code | ArcGIS API for JavaScript 4.24 | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 12:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/selected-rows-in-a-featuretable/m-p/1226569#M79159</guid>
      <dc:creator>MichaelCollinsGIS</dc:creator>
      <dc:date>2022-10-28T12:35:10Z</dc:date>
    </item>
  </channel>
</rss>

