<?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 Dynamic Identify Task - Getting fields names and values dynamically. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-identify-task-getting-fields-names-and/m-p/198873#M18440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to to create a dynamic identify. The idea is to emulate as close as possible the identify experience from ArcGis desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I've been able to connect to the map to obtain the active services, then cycle trough them to know the witch layers are visible, and now I'm in the process of figuring out how to access the attributes (name and value). Is it possible to access this information, without knowing in advance witch fields are going to be returned? I know that the information is under the result.feature.attributes.*, but can you help me in cycling trough this information? This has to be a really generic function so that it works with any layer without prior coding or configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 12:36:53 GMT</pubDate>
    <dc:creator>TiagoRibeiro</dc:creator>
    <dc:date>2011-11-02T12:36:53Z</dc:date>
    <item>
      <title>Dynamic Identify Task - Getting fields names and values dynamically.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-identify-task-getting-fields-names-and/m-p/198873#M18440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to to create a dynamic identify. The idea is to emulate as close as possible the identify experience from ArcGis desktop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I've been able to connect to the map to obtain the active services, then cycle trough them to know the witch layers are visible, and now I'm in the process of figuring out how to access the attributes (name and value). Is it possible to access this information, without knowing in advance witch fields are going to be returned? I know that the information is under the result.feature.attributes.*, but can you help me in cycling trough this information? This has to be a really generic function so that it works with any layer without prior coding or configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-identify-task-getting-fields-names-and/m-p/198873#M18440</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2011-11-02T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Identify Task - Getting fields names and values dynamically.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-identify-task-getting-fields-names-and/m-p/198874#M18441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm trying to to create a dynamic identify. The idea is to emulate as close as possible the identify experience from ArcGis desktop.&lt;BR /&gt;So far I've been able to connect to the map to obtain the active services, then cycle trough them to know the witch layers are visible, and now I'm in the process of figuring out how to access the attributes (name and value). Is it possible to access this information, without knowing in advance witch fields are going to be returned? I know that the information is under the result.feature.attributes.*, but can you help me in cycling trough this information? This has to be a really generic function so that it works with any layer without prior coding or configuration.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to work something out with this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
for (var attribute in results.feature.attributes)
 {
&amp;nbsp; if(attribute.toString().toUpperCase() != "SHAPE")
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; console.log(attribute + " - " + results.feature.attributes[attribute]);
&amp;nbsp; }
 }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives out the information I need. If someone has a more elegant idea, please let me know!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dynamic-identify-task-getting-fields-names-and/m-p/198874#M18441</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2021-12-11T09:55:24Z</dc:date>
    </item>
  </channel>
</rss>

