Need help accessing FeatureSet Attributes

Discussion created by citizens on Sep 21, 2010
Latest reply on Sep 21, 2010 by citizens
I have a GPTask that is returning the expected array of graphics to the browser and I am able to display the graphics, but I'm having a brain **** trying to figure out how to access the attributes of the graphics. Below is the code I use to display the graphics, how would I extend this to access the attributes?

The two columns (attribute fields) I'm concerned with are: TRACK, YEAR

function compareList(result){
   var polySymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, 
   new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT,
   new dojo.Color([255,0,0]), 2),new dojo.Color([255,255,0,0.25]));
   var features = result.value.features;
   for (var f=0, fl=features.length; f<fl; f++){
      var feature = features[f];