<?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: attribute coded value shown as 'undefined' in infoWindow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94770#M8653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I'm not sure what you mean by 'the only attribute for the feature is Site_name".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Because earlier, you said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried that console message you gave above, and the only return was 'Site_name'&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is getting confusing...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 13:11:50 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2012-10-26T13:11:50Z</dc:date>
    <item>
      <title>attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94759#M8642</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 tabbed infoWindow in my web app (using v3.2, Server10.0).&amp;nbsp; The field in question uses a coded value (integers, corresponding to strings).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that this field is shown as 'undefined' in the infoWindow, rather than either the range or dmoain value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This tabbed infoWindow is built based on this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a fair amount of code involved in the tabbed structure..I'll post what I think is the most relevant below..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ideas? Thanks! // Jason&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Identify Task and Params:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function initFunctionality(map) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, "onClick", doIdentify);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyTask = new esri.tasks.IdentifyTask("http://" + mapDomain + "/ArcGIS/rest/services/mapServer");

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams = new esri.tasks.IdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.tolerance = 10;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.layerIds = ssLayer.visibleLayers;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.layerOption = "all";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.width = map.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.height = map.height;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.resize(415, 200);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setContent("");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setTitle("");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setContent(dijit.byId("tabs").domNode);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setTitle("Identify Results");
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;infoWindow layout:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((layerResults.features.length &amp;gt; 0) &amp;amp;&amp;amp; (orgOn != 0)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.byId("tabs").selectChild("orgTab");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content = "&amp;lt;i&amp;gt;Total features returned: " + layerResults.features.length + "&amp;lt;/i&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;table border='1'&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Address&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;BIN&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Category&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0, il = layerResults.features.length; i &amp;lt; il; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + layerResults.features&lt;I&gt;.attributes['Name'] + "&amp;lt;/td&amp;gt;"; // works fine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;td&amp;gt;" + layerResults.features&lt;I&gt;.attributes['Address'] + "&amp;lt;/td&amp;gt;"; // works fine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;td&amp;gt;" + layerResults.features&lt;I&gt;.attributes['CodedValue'] + "&amp;lt;/td&amp;gt;"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this line returns 'undefined' /// 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94759#M8642</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2021-12-10T23:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94760#M8643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again..I still haven&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'t figured this out..I can get at least the integer value when I refer to the same attribute in a content pane, but I still get 'undefined' when attempting to print the same attribute value to screen...any ideas? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94760#M8643</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-10-23T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94761#M8644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;infoWindow layout:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((layerResults.features.length &amp;gt; 0) &amp;amp;&amp;amp; (orgOn != 0)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.byId("tabs").selectChild("orgTab");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content = "&amp;lt;i&amp;gt;Total features returned: " + layerResults.features.length + "&amp;lt;/i&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;table border='1'&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Address&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;BIN&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Category&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0, il = layerResults.features.length; i &amp;lt; il; i++) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + layerResults.features&lt;SPAN style="font-style:italic;"&gt;.attributes['Name'] + "&amp;lt;/td&amp;gt;"; // works fine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;td&amp;gt;" + layerResults.features&lt;I&gt;.attributes['Address'] + "&amp;lt;/td&amp;gt;"; // works fine
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;td&amp;gt;" + layerResults.features&lt;I&gt;.attributes['CodedValue'] + "&amp;lt;/td&amp;gt;"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // this line returns 'undefined' /// 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content += "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;BR /&gt;}&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just had a quick glance...look at the way you're trying to access the value in the attributes object, what value are you &lt;I&gt;really using as the key?&lt;/I&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94761#M8644</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2021-12-10T23:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94762#M8645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure what you mean...obviously I do not actually have 'coded value' in my code; I have the name of that attribute field, in the exact same way as I have it written in my content function, but there I get the integer value, here I get 'undefined'...maybe I am missing the point of your hint?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 19:49:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94762#M8645</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-10-23T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94763#M8646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wrote in 'CodedValue' in place of 'Category' just to show where the coded value was..In the code it is 'Category', one of the fields for that layer..I have almost the exact same code elsewhere , which prints the info to a content pane without any problems.&amp;nbsp; Is that what you mean?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 12:11:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94763#M8646</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-10-24T12:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94764#M8647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I wrote in 'CodedValue' in place of 'Category' just to show where the coded value was..In the code it is 'Category', one of the fields for that layer..I have almost the exact same code elsewhere , which prints the info to a content pane without any problems.&amp;nbsp; Is that what you mean?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;So the code you posted isn't the code you use?&amp;nbsp; (I'm confused!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you put this in your code (just inside that for loop will be fine) then post the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//Assumes you're using an up-to-date browser!
console.log(Object.keys(layerResults.features&lt;I&gt;.attributes));
&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94764#M8647</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2021-12-10T23:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94765#M8648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that code gives : "["OBJECTID","SHAPE" ,"Name","Address","City"......] in the console...for the Category attribute, 'Program Category'(the alias) is given..I tried replacing the text with the alias but this does not work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94765#M8648</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-10-24T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94766#M8649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...and if you stick a breakpoint on that line and then add a watch on layerResults.features&lt;I&gt;.attributes what do you see?&amp;nbsp; (expand it then screenshot it)&lt;/I&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94766#M8649</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-24T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94767#M8650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was actually able to get this to work using the alias (although I'm not sure why that worked..?)...I was trying to use a lookup function to replace the int with a string, but when I removed this and replaced the field name with the field alias, it worked...thanks for help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a somewhat similar issue with another set of field names meant to be printed to a content pane.&amp;nbsp; I tried that console message you gave above, and the only return was 'Site_name' (the displayFieldName of the field), with nor reference to my desired field....In this example I am getting 'undefined' for every field except for the displayFieldName......the alsias and field name are the same in this case, so that isn't the issue...when I 'watch' this var in Firebug all it says next to it is 'undefined'...thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 18:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94767#M8650</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-10-24T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94768#M8651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was actually able to get this to work using the alias (although I'm not sure why that worked..?)...I was trying to use a lookup function to replace the int with a string, but when I removed this and replaced the field name with the field alias, it worked...thanks for help.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaScript doesn't care about whether or not it's an ESRI alias or not, it's just an object with named properties (associative array if you want to Google it) and you access those properties with their single, unique, key.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I am having a somewhat similar issue with another set of field names meant to be printed to a content pane.&amp;nbsp; I tried that console message you gave above, and the only return was 'Site_name' (the displayFieldName of the field), with nor reference to my desired field....In this example I am getting 'undefined' for every field except for the displayFieldName......the alsias and field name are the same in this case, so that isn't the issue...when I 'watch' this var in Firebug all it says next to it is 'undefined'...thoughts?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, the only attribute for the features is called "Site_name" there are no others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you watch *which* variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(sounds like time for a new thread)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 11:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94768#M8651</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-25T11:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94769#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I can make a new thread if needed, but I will respond to your last post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case I am trying to access the value for 'Bldg_name" and 'ZIP"...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what you mean by 'the only attribute for the feature is Site_name".&amp;nbsp; The layer has several attributes, and I can access them using IdentifyTask info Window but I get a return of 'undefined' here (see code below, this prints the returned values to a content pane'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I 'watched' resultFeatures&lt;I&gt;.attributes['Site_name'] and resultFeatures&lt;I&gt;.attributes['Bldg_name']...Site_name returns the expected value (the name of the site), but bldg_name returns undefined in Firebug..but in an infoWindow this same field returns a string.&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the code, and thanks for your help // Jason&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0, l = 5; i &amp;lt; l; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locContent += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" + resultFeatures&lt;I&gt;.attributes['Site_name'] + "&amp;lt;/td&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locContent += "&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;" +&amp;nbsp; resultFeatures&lt;I&gt;.attributes['Bldg_name'] + "&amp;lt;/td&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locContent += "&amp;lt;td&amp;gt;" +&amp;nbsp; resultFeatures&lt;I&gt;.attributes['ZIP'] + "&amp;lt;/td&amp;gt;"; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //console.log(Object.keys(fset.features&lt;I&gt;.attributes));
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locContent += "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.byId("closestSchoolResults").innerHTML = locContent;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94769#M8652</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2021-12-10T23:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94770#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I'm not sure what you mean by 'the only attribute for the feature is Site_name".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Because earlier, you said:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried that console message you gave above, and the only return was 'Site_name'&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is getting confusing...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 13:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94770#M8653</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-10-26T13:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: attribute coded value shown as 'undefined' in infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94771#M8654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this ESRI example that was helpful....it shows how to extract the coded values, and in a pinch can be used as a standalone to get these values for hard-coding...&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/data_requestLayerInfo.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/data_requestLayerInfo.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 14:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attribute-coded-value-shown-as-undefined-in/m-p/94771#M8654</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2013-01-09T14:04:41Z</dc:date>
    </item>
  </channel>
</rss>

