<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need help accessing FeatureSet Attributes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-accessing-featureset-attributes/m-p/246199#M22813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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 fart 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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The two columns (attribute fields) I'm concerned with are: TRACK, YEAR &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
function compareList(result){
&amp;nbsp;&amp;nbsp; var polySymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, 
&amp;nbsp;&amp;nbsp; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT,
&amp;nbsp;&amp;nbsp; new dojo.Color([255,0,0]), 2),new dojo.Color([255,255,0,0.25]));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; var features = result.value.features;
&amp;nbsp;&amp;nbsp; for (var f=0, fl=features.length; f&amp;lt;fl; f++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = features&lt;F&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setSymbol(polySymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
}
&lt;/F&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 16:55:09 GMT</pubDate>
    <dc:creator>KeithSandell</dc:creator>
    <dc:date>2010-09-21T16:55:09Z</dc:date>
    <item>
      <title>Need help accessing FeatureSet Attributes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-accessing-featureset-attributes/m-p/246199#M22813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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 fart 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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The two columns (attribute fields) I'm concerned with are: TRACK, YEAR &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
function compareList(result){
&amp;nbsp;&amp;nbsp; var polySymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, 
&amp;nbsp;&amp;nbsp; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT,
&amp;nbsp;&amp;nbsp; new dojo.Color([255,0,0]), 2),new dojo.Color([255,255,0,0.25]));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; var features = result.value.features;
&amp;nbsp;&amp;nbsp; for (var f=0, fl=features.length; f&amp;lt;fl; f++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var feature = features&lt;F&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setSymbol(polySymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(feature);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
}
&lt;/F&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 16:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-accessing-featureset-attributes/m-p/246199#M22813</guid>
      <dc:creator>KeithSandell</dc:creator>
      <dc:date>2010-09-21T16:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Got it!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-accessing-featureset-attributes/m-p/246200#M22814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;feature.attributes.Track returned the value for the row/column.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 17:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/need-help-accessing-featureset-attributes/m-p/246200#M22814</guid>
      <dc:creator>KeithSandell</dc:creator>
      <dc:date>2010-09-21T17:41:12Z</dc:date>
    </item>
  </channel>
</rss>

