AnsweredAssumed Answered

Passing Attribute Value to Variable

Question asked by crookcountygis on May 1, 2014
Latest reply on May 2, 2014 by jskinner-esristaff
We are trying to set up a simple application that only uses one layer. This layer is a grid for a mapbook. We want users to be able to click one of the grid features and it open a pdf on a separate window. The only thing I'm hung up on currently is trying to grab an attribute value and pass it to a variable. One of the attributes for the feature is the URL to the PDF.

var mapBook = new FeatureLayer("[Webservice]", {  mode: FeatureLayer.MODE_SNAPSHOT  });  map.addLayer(mapBook);  mapBook.on("click", function(evt) {  var url = [Need to pass attribute value here];;  });

Do I need to use Query or Identify task? Or is there something else?