AnsweredAssumed Answered

Identify tool wont display attributes

Question asked by bradleyglennjones on Jan 26, 2016
Latest reply on Jan 26, 2016 by bradleyglennjones

I'm teaching myself GIS Web Development.  Below is a snippet of code for an Identify tool i'm building.  Not a part of any project to be implemented.  Just for learning.  None of the attributes for the fields used as content parameters on line 25 display with exception of the first two that i have set to display in bold.  if I use

var SL_infoTemplate = new esri.InfoTemplate("Sewer Lines", "${*}");

they all display.  Also,  the arguments on line 17 work with exception of the "Install Date"


Can anyone explain this to me? What am I missing?


// dojo.require() calls the necessary map-related references(libraries? modules?) from the API library to the application:
function startup() {
     // create the map object and load it in "mymap" div element
     var map = new esri.Map("mymap",{
                             // Parameters below added by me based on argis js API
                             center: [-92.315097, 34.733316],
                             zoom: 16,
                             basemap: "topo",
     //load the manhole layer into an object
     var lyrManholes = new esri.layers.FeatureLayer("http://app7:6080/arcgis/rest/services/MoreLayers/MapServer/0", {outFields: ["*"]});
          //Indetify the Manhole and display attributes
          var tMH = "<b>${MH_NO}</b><br>" + "Depth: ${MHDPTH}<br>" + "Install Date: ${INSDATE}<br>" + "Unit Type: ${UNITTYPE}<br>" + "ServStat? ${SERVSTAT}<br>";
          //create the MH_infoTemplate object and pass the template
          var MH_infoTemplate = new esri.InfoTemplate("Manholes", tMH);
          //assign the MH_infoTemplate so it applies on every feature in this layer
    //load the sewer lines layer into an object
     var lyrSewers = new esri.layers.FeatureLayer ("http://app7:6080/arcgis/rest/services/MoreLayers/MapServer/1", {outFields: ["*"]});
          //Indetify the Sewer lines and display attributes
          var tSL = "<b>${UPS_MH}</b>" + "<b> - </b>" + "<b>${DWN_MH}</b><br>" + "Pipe Length: ${PIPELEN}<br>";
          //create the info template object and pass the template
          var SL_infoTemplate = new esri.InfoTemplate("Sewer Lines", tSL);
          //assign the infotemplate so it applies on every feature in this layer
     // Add the legend. map:map is which map will have the lengend.  "mylegend" is the legend div element.
     var legend = new esri.dijit.Legend({map: map}, "mylegend");
//Add the layers to the map
//dojo.addOnLoad(startup) will tell the browser to call the startup function upon starting.