Hello,I have a tabbed infoWindow in my web app (using v3.2, Server10.0). The field in question uses a coded value (integers, corresponding to strings).The problem is that this field is shown as 'undefined' in the infoWindow, rather than either the range or dmoain value.This tabbed infoWindow is built based on this example:http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htmThere is a fair amount of code involved in the tabbed structure..I'll post what I think is the most relevant below..ideas? Thanks! // JasonIdentify Task and Params: function initFunctionality(map)
{
dojo.connect(map, "onClick", doIdentify);
identifyTask = new esri.tasks.IdentifyTask("http://" + mapDomain + "/ArcGIS/rest/services/mapServer");
identifyParams = new esri.tasks.IdentifyParameters();
identifyParams.tolerance = 10;
identifyParams.returnGeometry = true;
identifyParams.layerIds = ssLayer.visibleLayers;
identifyParams.layerOption = "all";
identifyParams.width = map.width;
identifyParams.height = map.height;
map.infoWindow.resize(415, 200);
map.infoWindow.setContent("");
map.infoWindow.setTitle("");
map.infoWindow.setContent(dijit.byId("tabs").domNode);
map.infoWindow.setTitle("Identify Results");
}
infoWindow layout:
if ((layerResults.features.length > 0) && (orgOn != 0)) {
dijit.byId("tabs").selectChild("orgTab");
content = "<i>Total features returned: " + layerResults.features.length + "</i>";
content += "<table border='1'><tr><th>Name</th><th>Address</th><th>BIN</th><th>Category</th></tr>";
for (var i = 0, il = layerResults.features.length; i < il; i++) {
content += "<tr><td>" + layerResults.features.attributes['Name'] + "</td>"; // works fine
content += "<td>" + layerResults.features.attributes['Address'] + "</td>"; // works fine
content += "<td>" + layerResults.features.attributes['CodedValue'] + "</td>";
// this line returns 'undefined' ///
}
content += "</tr></table>";
}