<?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 Setting Attributes Dynamically for graphics used in Service Area in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621810#M58061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it was making sure the "Candidate Field" value was filled in.&amp;nbsp; Thanks for checking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Apr 2010 17:37:41 GMT</pubDate>
    <dc:creator>AdamPfister</dc:creator>
    <dc:date>2010-04-01T17:37:41Z</dc:date>
    <item>
      <title>Setting Attributes Dynamically for graphics used in Service Area</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621808#M58059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to dynamically set the attributes used in the features for Service Areas?&amp;nbsp; I've used the Service Area example from the javascript samples to try and modify.&amp;nbsp; See below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 function mapClickHandler(evt){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); //clear existing graphics&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //define the symbology used to display the results and input point
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pointSymbol =&amp;nbsp; new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 20,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new dojo.Color([88,116,152]), 2),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new dojo.Color([88,116,152,0.45]));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inPoint = new esri.geometry.Point(evt.mapPoint.x,evt.mapPoint.y,map.spatialReference);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this doesn't work
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var location = new esri.Graphic(inPoint, pointSymbol, {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FreightCost": 3.50
&amp;nbsp;&amp;nbsp;&amp;nbsp; }, null);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(location);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var features = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push(location);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var facilities = new esri.tasks.FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; facilities.features = features;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.facilities = facilities;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //solve ...
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Mar 2010 14:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621808#M58059</guid>
      <dc:creator>AdamPfister</dc:creator>
      <dc:date>2010-03-27T14:53:03Z</dc:date>
    </item>
    <item>
      <title>Setting Attributes Dynamically for graphics used in Service Area</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621809#M58060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you've already recieved an answer to this question, but I thought I'd post the details here in case others run into this issue. You need to modify the name of the attribute to Attr_&amp;lt;Your Field Name&amp;gt;, which in your case would be "Attr_FreightCost". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the 'Facility properties' section of the following help topic for details on the attribute input fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.esri.com/en/arcgisdesktop/10.0/help/index.html#/Service_area_analysis/004700000048000000/"&gt;http://help.esri.com/en/arcgisdesktop/10.0/help/index.html#/Service_area_analysis/004700000048000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will also need to make sure that the cadidate field names for the Attr_FreightCost attribute contains the Attr_FreightCost value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:53:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621809#M58060</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2010-04-01T15:53:35Z</dc:date>
    </item>
    <item>
      <title>Setting Attributes Dynamically for graphics used in Service Area</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621810#M58061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it was making sure the "Candidate Field" value was filled in.&amp;nbsp; Thanks for checking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 17:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-attributes-dynamically-for-graphics-used/m-p/621810#M58061</guid>
      <dc:creator>AdamPfister</dc:creator>
      <dc:date>2010-04-01T17:37:41Z</dc:date>
    </item>
  </channel>
</rss>

