<?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: Console.log attributes of selected features in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128925#M75699</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clear the graphics before you draw the sketch. add following in line 219&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;polygonGraphicsLayer.removeAll();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Dec 2021 13:48:24 GMT</pubDate>
    <dc:creator>Kishore</dc:creator>
    <dc:date>2021-12-27T13:48:24Z</dc:date>
    <item>
      <title>Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128918#M75694</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to use this &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/" target="_self"&gt;sample&lt;/A&gt;&amp;nbsp;to select features on my map and display &lt;STRONG&gt;&lt;EM&gt;attributes&lt;/EM&gt; &lt;/STRONG&gt;in my custom html table, so for the first step i want to show selected results in&lt;STRONG&gt; console.log().&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In 269 line i added &lt;STRONG&gt;console.log(results.features.attributes.unit_name) , &lt;/STRONG&gt;but it returns&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;undefined.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can i get selected features attributes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128918#M75694</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-12-27T13:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128919#M75695</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp; - you code pen sample is not working as you share the editor URL. please share the code her to check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128919#M75695</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2021-12-27T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128920#M75696</link>
      <description>&lt;P&gt;Thanks Kishore, i have changed link.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128920#M75696</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-12-27T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128922#M75697</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp; - Please add following code to display the attributes:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;results.features.forEach((feature)=&amp;gt;{console.log(feature.attributes["unit_name"]);});&lt;/LI-CODE&gt;&lt;P&gt;You cannot get the attributes for the collection. you have to loop through the array and display the attribute values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:26:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128922#M75697</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2021-12-27T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128924#M75698</link>
      <description>&lt;P&gt;Thanks Kishore,&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after i do other features selection, it returns previous selection + current selection,&amp;nbsp; i want to get only current selection &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128924#M75698</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-12-27T13:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128925#M75699</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clear the graphics before you draw the sketch. add following in line 219&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;polygonGraphicsLayer.removeAll();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 13:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1128925#M75699</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2021-12-27T13:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Console.log attributes of selected features</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1129107#M75713</link>
      <description>&lt;P&gt;Thanks Kishore, it works like a charm &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 07:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/console-log-attributes-of-selected-features/m-p/1129107#M75713</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2021-12-28T07:23:39Z</dc:date>
    </item>
  </channel>
</rss>

