<?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: how to remove selection parcels  &amp; error on duplicate selection parcels to current datagrid in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276208#M25497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was an easy fix for that error. &lt;A href="http://jsfiddle.net/m6gw4yj5/2/" title="http://jsfiddle.net/m6gw4yj5/2/" rel="nofollow noopener noreferrer" target="_blank"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code added the newly selected parcel into an array. I just added an if statement to check whether the new parcels were already in that array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arrayUtils.forEach(newparcelItems, function (item) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parcelItems.indexOf(item) !== 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcelItems.push(item);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:27:28 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-11T13:27:28Z</dc:date>
    <item>
      <title>how to remove selection parcels  &amp; error on duplicate selection parcels to current datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276207#M25496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I found this thread - &lt;A href="https://community.esri.com/message/505170"&gt;Add more selection parcels to current datagrid&lt;/A&gt;&amp;nbsp; able to select additional parcel(s) to current datagrid but is there possible to click a button to remove current any highlighted parcels on a map? Besides that, I found an error message. If the parcels have been selected and you accidentally reselect it again then you will get an error message. So can you ignore it or prevent the error message so the datagrid table will still got the same results from your early search instead of showing error message on datagrid?&lt;/P&gt;&lt;P&gt;Ken also provided code in fiddle:&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/kenbuja/m6gw4yj5/1/" title="http://jsfiddle.net/kenbuja/m6gw4yj5/1/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 15:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276207#M25496</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-10-09T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove selection parcels  &amp; error on duplicate selection parcels to current datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276208#M25497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was an easy fix for that error. &lt;A href="http://jsfiddle.net/m6gw4yj5/2/" title="http://jsfiddle.net/m6gw4yj5/2/" rel="nofollow noopener noreferrer" target="_blank"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code added the newly selected parcel into an array. I just added an if statement to check whether the new parcels were already in that array.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arrayUtils.forEach(newparcelItems, function (item) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (parcelItems.indexOf(item) !== 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parcelItems.push(item);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276208#M25497</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove selection parcels  &amp; error on duplicate selection parcels to current datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276209#M25498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try update the code but still got error message if reselect the same parcel that already showed on the datagrid.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="errorselect.gif" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/130460_errorselect.gif" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you Ken.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:46:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276209#M25498</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-10-09T16:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove selection parcels  &amp; error on duplicate selection parcels to current datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276210#M25499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone give me some ideas how to do this? At least get rid of the error message.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 14:42:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-remove-selection-parcels-error-on-duplicate/m-p/276210#M25499</guid>
      <dc:creator>jamesa</dc:creator>
      <dc:date>2015-10-15T14:42:22Z</dc:date>
    </item>
  </channel>
</rss>

