<?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 Get attribute of table selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attribute-of-table-selection/m-p/1163027#M76976</link>
    <description>&lt;P&gt;I'm developping a widget based on the table widget in Experience Builder.&lt;/P&gt;&lt;P&gt;Basically, I added 2 buttons on top of the table, and I want to fire some actions on my selected rows (selected though the table, not by clicking on the map), by a click on those buttons.&lt;/P&gt;&lt;P&gt;My main action is to automatically change the value of one attribute of the selected row(s).&lt;/P&gt;&lt;P&gt;I can't figure out how to access these attributes. So far, I can get an Array with the selected items, but it doesn't contain the attributes values I need. Can someone help ? Thanks.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;changeStatus = () =&amp;gt; {
    const selectedArray = (this.table as any).grid.selectedItems.items;
    console.log(selectedArray)
}

&amp;lt;Button onClick={this.changeStatus} size="lg"  style={{
                position: 'absolute',
                backgroundColor: 'red',
                borderRadius: 6,
                right: 180,
                top: 48,
         }}&amp;gt;Refuse&amp;lt;/Button&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 11 Apr 2022 14:15:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-04-11T14:15:45Z</dc:date>
    <item>
      <title>Get attribute of table selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attribute-of-table-selection/m-p/1163027#M76976</link>
      <description>&lt;P&gt;I'm developping a widget based on the table widget in Experience Builder.&lt;/P&gt;&lt;P&gt;Basically, I added 2 buttons on top of the table, and I want to fire some actions on my selected rows (selected though the table, not by clicking on the map), by a click on those buttons.&lt;/P&gt;&lt;P&gt;My main action is to automatically change the value of one attribute of the selected row(s).&lt;/P&gt;&lt;P&gt;I can't figure out how to access these attributes. So far, I can get an Array with the selected items, but it doesn't contain the attributes values I need. Can someone help ? Thanks.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;changeStatus = () =&amp;gt; {
    const selectedArray = (this.table as any).grid.selectedItems.items;
    console.log(selectedArray)
}

&amp;lt;Button onClick={this.changeStatus} size="lg"  style={{
                position: 'absolute',
                backgroundColor: 'red',
                borderRadius: 6,
                right: 180,
                top: 48,
         }}&amp;gt;Refuse&amp;lt;/Button&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-attribute-of-table-selection/m-p/1163027#M76976</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-11T14:15:45Z</dc:date>
    </item>
  </channel>
</rss>

