<?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 resultGraphic attribute Assignment in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411347#M9619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to setup a configuration xml file for a user to set the field names in, which would then be picked up by the mxml script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I have a bunch of code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer1LastName:String = resultGraphic.attributes.Ratepayer1LastName; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer2FirstName:String = resultGraphic.attributes.Ratepayer2FirstName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I want that last bit to be set by the user in an xml file. So I basically want this bit to always stay the same - "resultGraphic.attributes." and then the last bit (e.g. Ratepayer1LastName) to be assigned from an xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how to do this? If I go:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;userconfig = configXML.windowtitle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer1LastName:String = "resultGraphic.attributes." + userconfig;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it obviously just takes that string and not the actual attribute value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got myself a bit confused.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 01:01:25 GMT</pubDate>
    <dc:creator>ShaunWeston</dc:creator>
    <dc:date>2012-01-25T01:01:25Z</dc:date>
    <item>
      <title>resultGraphic attribute Assignment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411347#M9619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to setup a configuration xml file for a user to set the field names in, which would then be picked up by the mxml script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I have a bunch of code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer1LastName:String = resultGraphic.attributes.Ratepayer1LastName; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer2FirstName:String = resultGraphic.attributes.Ratepayer2FirstName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I want that last bit to be set by the user in an xml file. So I basically want this bit to always stay the same - "resultGraphic.attributes." and then the last bit (e.g. Ratepayer1LastName) to be assigned from an xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure how to do this? If I go:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;userconfig = configXML.windowtitle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Ratepayer1LastName:String = "resultGraphic.attributes." + userconfig;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it obviously just takes that string and not the actual attribute value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got myself a bit confused.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 01:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411347#M9619</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2012-01-25T01:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: resultGraphic attribute Assignment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411348#M9620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaun,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; You should be able to do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;userconfig = configXML.windowtitle var Ratepayer1LastName:String = resultGraphic.attributes[userconfig];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to click the top arrow (promote) and to click the Mark as answer check as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg"&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 01:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411348#M9620</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-01-25T01:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: resultGraphic attribute Assignment</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411349#M9621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome thanks that's what I'm after. You have saved me a lot of time trying to figure that out when it was quite easy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 01:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/resultgraphic-attribute-assignment/m-p/411349#M9621</guid>
      <dc:creator>ShaunWeston</dc:creator>
      <dc:date>2012-01-25T01:48:43Z</dc:date>
    </item>
  </channel>
</rss>

