<?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 How to make single selection on a FeatureTable in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058125#M73118</link>
    <description>&lt;DIV class="lia-page"&gt;&lt;CENTER&gt;&lt;DIV class="MinimumWidthContainer"&gt;&lt;DIV class="min-width-wrapper"&gt;&lt;DIV class="min-width"&gt;&lt;DIV class="lia-content"&gt;&lt;DIV class="lia-quilt lia-quilt-forum-topic-page lia-quilt-layout-two-column-main-side lia-top-quilt lia-forum-topic-page-gte-5"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV&gt;&lt;DIV class="linear-message-list message-list"&gt;&lt;DIV class="lia-linear-display-message-view"&gt;&lt;DIV class="first-message lia-forum-linear-view-gte-v5"&gt;&lt;DIV class="lia-panel-message message-uid-1043482"&gt;&lt;DIV class="lia-message-view-wrapper lia-js-data-messageUid-1043482 lia-component-forums-widget-message-view-two"&gt;&lt;DIV class="MessageView lia-message-view-forum-message lia-message-view-display lia-row-standard-read lia-thread-topic lia-message-authored-by-you"&gt;&lt;DIV class="lia-quilt lia-quilt-forum-message lia-quilt-layout-forum-topic-message-support"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/," target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/,&lt;/A&gt;&amp;nbsp;I loaded ESRI's FeatureTable widge into my App.&amp;nbsp; Is it possible to make single record selection rather than multiple records selection?&amp;nbsp; I mean that if clicking a record, the previous selected record should be checked off.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CENTER&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 14 May 2021 18:24:54 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2021-05-14T18:24:54Z</dc:date>
    <item>
      <title>How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058125#M73118</link>
      <description>&lt;DIV class="lia-page"&gt;&lt;CENTER&gt;&lt;DIV class="MinimumWidthContainer"&gt;&lt;DIV class="min-width-wrapper"&gt;&lt;DIV class="min-width"&gt;&lt;DIV class="lia-content"&gt;&lt;DIV class="lia-quilt lia-quilt-forum-topic-page lia-quilt-layout-two-column-main-side lia-top-quilt lia-forum-topic-page-gte-5"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-main"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;&lt;DIV&gt;&lt;DIV class="linear-message-list message-list"&gt;&lt;DIV class="lia-linear-display-message-view"&gt;&lt;DIV class="first-message lia-forum-linear-view-gte-v5"&gt;&lt;DIV class="lia-panel-message message-uid-1043482"&gt;&lt;DIV class="lia-message-view-wrapper lia-js-data-messageUid-1043482 lia-component-forums-widget-message-view-two"&gt;&lt;DIV class="MessageView lia-message-view-forum-message lia-message-view-display lia-row-standard-read lia-thread-topic lia-message-authored-by-you"&gt;&lt;DIV class="lia-quilt lia-quilt-forum-message lia-quilt-layout-forum-topic-message-support"&gt;&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/," target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-featuretable-map/,&lt;/A&gt;&amp;nbsp;I loaded ESRI's FeatureTable widge into my App.&amp;nbsp; Is it possible to make single record selection rather than multiple records selection?&amp;nbsp; I mean that if clicking a record, the previous selected record should be checked off.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CENTER&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2021 18:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058125#M73118</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-05-14T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058229#M73119</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it is possible. Just call &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#clearSelection" target="_self"&gt;FeatureTable.clearSelection()&lt;/A&gt; method right before you call &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#selectRows" target="_self"&gt;FeatureTable.selectRows()&lt;/A&gt; method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified an &lt;A href="https://codepen.io/U_B_U/pen/rNyeRPL?editors=100" target="_self"&gt;SDK sample&lt;/A&gt; for this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 22:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058229#M73119</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-05-14T22:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058446#M73123</link>
      <description>&lt;P&gt;Undral:&amp;nbsp; Thanks for your response.&amp;nbsp; Actually, I did have used the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;myTable.on('selection-change', (event) =&amp;gt; {&lt;BR /&gt;myTable.clearSelection();&lt;BR /&gt;event.added.forEach(function (item) { ...&lt;/P&gt;&lt;P&gt;It does clear the selection.&amp;nbsp; However, the new-clicked row's check-on also becomes off.&amp;nbsp; I wonder if there is away to keep the new-clicked row checked-on.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 11:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058446#M73123</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-05-17T11:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058599#M73133</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please take a look at the test app provided above. You must clear the selection right before you call FeatureTable.selectRows() method not in response to the event.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the test app this is how the clearSelection is called.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; featureTable.clearSelection();
 candidate &amp;amp;&amp;amp; featureTable.selectRows(candidate.graphic);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 16:26:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058599#M73133</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-05-17T16:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058622#M73137</link>
      <description>&lt;P&gt;Thanks for your response.&amp;nbsp; After adding&lt;/P&gt;&lt;P&gt;featureTable&lt;FONT color="#000000"&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;selectRows&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;candidate&lt;SPAN class="token punctuation"&gt;&lt;FONT color="#000000"&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;graphic&lt;FONT color="#000000"&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;got error&amp;nbsp;&amp;nbsp; candidate&amp;nbsp; not defined.&amp;nbsp; Could you guide me how to define the variable?&amp;nbsp; Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 16:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058622#M73137</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-05-17T16:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058623#M73138</link>
      <description>&lt;P&gt;It is in the app I provided. &amp;nbsp;Please take a look at the app and modify it to meet your needs.&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/rNyeRPL?editors=100" target="_blank"&gt;https://codepen.io/U_B_U/pen/rNyeRPL?editors=100&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 17:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058623#M73138</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-05-17T17:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make single selection on a FeatureTable</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058896#M73152</link>
      <description>&lt;P&gt;Your approach is right.&amp;nbsp; Since my code is different somehow, I can't use yours directly till I revise my code somehow.&amp;nbsp; However, I will accept yours as the solution.&amp;nbsp; Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 11:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-single-selection-on-a-featuretable/m-p/1058896#M73152</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-05-18T11:47:44Z</dc:date>
    </item>
  </channel>
</rss>

