<?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 Getting a value from feature in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-value-from-feature/m-p/555648#M51843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please do explain me the meaning of these statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
bldgResults = {displayFieldName:null,features:[]};
parcelResults = {displayFieldName:null,features:[]};
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are present in the addToMap(idResults, evt) method of the sample given in the link&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also please do let me know if this would get me the "UNIQPOLYID" from feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; identifyTask.execute(identifyParams, function(result) { 
&amp;nbsp;&amp;nbsp; var polyID = result.feature.attributes["UNIQPOLYID"]; 
&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prasanna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:00:30 GMT</pubDate>
    <dc:creator>PrasannaRaghavendar</dc:creator>
    <dc:date>2021-12-12T00:00:30Z</dc:date>
    <item>
      <title>Getting a value from feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-value-from-feature/m-p/555648#M51843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please do explain me the meaning of these statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
bldgResults = {displayFieldName:null,features:[]};
parcelResults = {displayFieldName:null,features:[]};
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These are present in the addToMap(idResults, evt) method of the sample given in the link&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also please do let me know if this would get me the "UNIQPOLYID" from feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; identifyTask.execute(identifyParams, function(result) { 
&amp;nbsp;&amp;nbsp; var polyID = result.feature.attributes["UNIQPOLYID"]; 
&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Prasanna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-value-from-feature/m-p/555648#M51843</guid>
      <dc:creator>PrasannaRaghavendar</dc:creator>
      <dc:date>2021-12-12T00:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-value-from-feature/m-p/555649#M51844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Prasanna,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the first code block clears out the bldgResults and parcelResults variables just in case the identifyTask has already been run (so that previous results won't appear again).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because the identify returns an array of results, you either have to loop through them or specify the index position of one of the items in the array in order to retrieve attributes of individual features.&amp;nbsp; in these sorts of scenarios it is extremely helpful to set a breakpoint in the code using browser developers tools and interrogate variables in the console to see whats going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the screenshot i attached i set a breakpoint at the beginning of the addToMap function.&amp;nbsp; the first feature that gets returned does not include a "UNIQPOLYID" field, so a call to retrieve it will return "undefined".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 15:17:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-a-value-from-feature/m-p/555649#M51844</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-12-27T15:17:28Z</dc:date>
    </item>
  </channel>
</rss>

