function showQueryResults(results) { dom.byId("facilityDetailDiv").innerHTML = ""; var s = "", aliases = results.fieldAliases; for (var i=0, il=results.features.length; i<il; i++) { var featureAttributes = results.features.attributes; for (att in featureAttributes) { s = s + "<b>" + (aliases.hasOwnProperty(att) && aliases[att]) + ":" + featureAttributes[att] + "<br>"; } s = s + "<br>"; } dom.byId("facilityDetailDiv").innerHTML = s; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.