<?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: What is the reason behind the IdentifyResult obj returning alias names as attribu in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176413#M4147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; it is actually not an API thing it is how ArcGIS Server has alway handled the Identify operation. ArcGIS Server returns the alias for fields, so the API has to work with this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 10:59:20 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2013-10-30T10:59:20Z</dc:date>
    <item>
      <title>What is the reason behind the IdentifyResult obj returning alias names as attributes.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176412#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a question for an ESRI developer or anyone who wants to chime in...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why has it always been that the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/IdentifyResult.html" rel="nofollow noopener noreferrer" target="_blank"&gt;IdentifyResult &lt;/A&gt;&lt;SPAN&gt;object always returns a graphic with it's attributes as alias names?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This makes it very difficult to relate and join this object with other pieces of data through code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to&amp;nbsp; create a tool that uses the identify results and I want the "&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/tasks/supportClasses/IdentifyResult.html#displayFieldName" rel="nofollow noopener noreferrer" target="_blank"&gt;displayFieldName&lt;/A&gt;&lt;SPAN&gt;"&amp;nbsp; to be the label.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I originally thought i would get the label through code like..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
graphic.attributes[displayFieldName].toString()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but because the IdentifyResult&amp;nbsp; object returns alias names this does not work because in this specific case the display field as been aliased..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the API is too mature to change things now, but what was the original thought or benefit for doing this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176412#M4146</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2021-12-11T09:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason behind the IdentifyResult obj returning alias names as attribu</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176413#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; it is actually not an API thing it is how ArcGIS Server has alway handled the Identify operation. ArcGIS Server returns the alias for fields, so the API has to work with this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 10:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176413#M4147</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-10-30T10:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason behind the IdentifyResult obj returning alias names as attribu</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176414#M4148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Andrew,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; it is actually not an API thing it is how ArcGIS Server has alway handled the Identify operation. ArcGIS Server returns the alias for fields, so the API has to work with this.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that is correct Robert. It is a server operation that does return this type result. Sorry for the confusion. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 11:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176414#M4148</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2013-10-30T11:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason behind the IdentifyResult obj returning alias names as attribu</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176415#M4149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Drew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I handle this issue in my Identify widget by asking the map service for details of the layer and matching the alias to the actual field name (alot of work I know, but somethimes you just have to do what you have to do).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 12:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176415#M4149</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-10-30T12:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason behind the IdentifyResult obj returning alias names as attribu</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176416#M4150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Drew,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; I handle this issue in my Identify widget by asking the map service for details of the layer and matching the alias to the actual field name (alot of work I know, but somethimes you just have to do what you have to do).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the suggestion Robert. I have done similar workarounds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am primarily wondering why ESRI decided to do this. Is there an advantage that I am missing or was this an over site and should it be looked at or should there be an additional object that contains the fields we need in the IdentifyResult object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It has just always been a frustrating part of the code to deal with. But ya, sometimes you got to do what you got to do..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Drew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 12:32:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176416#M4150</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2013-10-30T12:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the reason behind the IdentifyResult obj returning alias names as attribu</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176417#M4151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am primarily wondering why ESRI decided to do this. Is there an advantage that I am missing or was this an over site and should it be looked at or should there be an additional object that contains the fields we need in the IdentifyResult object.&lt;BR /&gt;&lt;BR /&gt;It has just always been a frustrating part of the code to deal with. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that part can be frustrating. No, you're not missing anything (I think).&amp;nbsp; I'm not sure why it was decided that way 6+ years ago. I think that originally the "identify" was meant just as a way to quickly get some reasonably formatted information for a click-on-the-map.&amp;nbsp; But as you, and most other have found out, you rather have it return the real field names, so that you can do "more stuff".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is why most people use the "Query" instead of "Identify" to do the identifying-on-map.&amp;nbsp; The "Query" does pretty much the same, plus more and better. So except for that it only works on one individual layer at a time, it is usually the better option.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 18:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/what-is-the-reason-behind-the-identifyresult-obj/m-p/176417#M4151</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-11-07T18:59:13Z</dc:date>
    </item>
  </channel>
</rss>

