<?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 Bug in identifyResult.attributes? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-identifyresult-attributes/m-p/84722#M7644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the demo script at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_popup.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_popup.html&lt;/A&gt;&lt;SPAN&gt; and put a Firebug breakpoint on line 91:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var feature = result.feature;
feature.attributes.layerName = result.layerName; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.attributes should return the &lt;/SPAN&gt;&lt;STRONG&gt;attributes&lt;/STRONG&gt;&lt;SPAN&gt; of the feature, but instead it returns the &lt;/SPAN&gt;&lt;STRONG&gt;aliases&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13827[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a crucial distinction since the attributes are guaranteed to be unique whereas the aliases may not be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, feature.attributes should return the attributes while a new feature.aliases property could return the aliases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:15:19 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2021-12-10T23:15:19Z</dc:date>
    <item>
      <title>Bug in identifyResult.attributes?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-identifyresult-attributes/m-p/84722#M7644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the demo script at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_popup.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/find/find_popup.html&lt;/A&gt;&lt;SPAN&gt; and put a Firebug breakpoint on line 91:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var feature = result.feature;
feature.attributes.layerName = result.layerName; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.attributes should return the &lt;/SPAN&gt;&lt;STRONG&gt;attributes&lt;/STRONG&gt;&lt;SPAN&gt; of the feature, but instead it returns the &lt;/SPAN&gt;&lt;STRONG&gt;aliases&lt;/STRONG&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]13827[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a crucial distinction since the attributes are guaranteed to be unique whereas the aliases may not be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideally, feature.attributes should return the attributes while a new feature.aliases property could return the aliases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-identifyresult-attributes/m-p/84722#M7644</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2021-12-10T23:15:19Z</dc:date>
    </item>
  </channel>
</rss>

