<?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 How to retrieve the feature values in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220581#M5199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the sample: Zoom to Found Features source code at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to retrieve the values of the found feature. In this piece of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private function executeCompleteHandler(event:FindEvent):void {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.clear();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.symbol = sfsFind;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var resultCount:int = event.findResults.length;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (resultCount == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Alert.show("No record is found. Please change your search.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // add feature as graphic to graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for (var i:int = 0; i &amp;lt; resultCount; i++) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var graphic:Graphic = FindResult(event.findResults&lt;I&gt;).feature;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; graphic.toolTip = event.findResults&lt;I&gt;.foundFieldName + ": " + event.findResults&lt;I&gt;.value;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.add(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt; // Code I added in order to retrive the values of the feature (where STF, COF, ... are the attribute names)&lt;BR /&gt; var tempObj:Municipality = new Municipality();&lt;BR /&gt; tempObj.STF = event.findResults&lt;I&gt;.STF;&lt;BR /&gt; tempObj.COF = event.findResults&lt;I&gt;.COF;&lt;BR /&gt; tempObj.MCN = event.findResults&lt;I&gt;.MCN;&lt;BR /&gt; tempObj.Type = event.findResults&lt;I&gt;.Type;&lt;BR /&gt; tempObj.Area = event.findResults&lt;I&gt;.Area;&lt;BR /&gt; ......&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it does not work. How to revise the code to retrieve the values? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 12:50:06 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2012-06-15T12:50:06Z</dc:date>
    <item>
      <title>How to retrieve the feature values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220581#M5199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the sample: Zoom to Found Features source code at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html#/Zoom_to_found_features/01nq0000005n000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to retrieve the values of the found feature. In this piece of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private function executeCompleteHandler(event:FindEvent):void {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.clear();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.symbol = sfsFind;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var resultCount:int = event.findResults.length;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if (resultCount == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Alert.show("No record is found. Please change your search.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; } else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // add feature as graphic to graphics layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for (var i:int = 0; i &amp;lt; resultCount; i++) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var graphic:Graphic = FindResult(event.findResults&lt;I&gt;).feature;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; graphic.toolTip = event.findResults&lt;I&gt;.foundFieldName + ": " + event.findResults&lt;I&gt;.value;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myGraphicsLayer.add(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt; // Code I added in order to retrive the values of the feature (where STF, COF, ... are the attribute names)&lt;BR /&gt; var tempObj:Municipality = new Municipality();&lt;BR /&gt; tempObj.STF = event.findResults&lt;I&gt;.STF;&lt;BR /&gt; tempObj.COF = event.findResults&lt;I&gt;.COF;&lt;BR /&gt; tempObj.MCN = event.findResults&lt;I&gt;.MCN;&lt;BR /&gt; tempObj.Type = event.findResults&lt;I&gt;.Type;&lt;BR /&gt; tempObj.Area = event.findResults&lt;I&gt;.Area;&lt;BR /&gt; ......&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it does not work. How to revise the code to retrieve the values? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 12:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220581#M5199</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-06-15T12:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the feature values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220582#M5200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shaning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; As the result is a graphic you have prefix your calls to attribute values with attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;tempObj.STF = event.findResults&lt;I&gt;.attributes.STF;&lt;/I&gt;&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 &lt;/SPAN&gt;&lt;STRONG&gt;click the Mark as answer check&lt;/STRONG&gt;&lt;SPAN&gt; on this post and to &lt;/SPAN&gt;&lt;STRONG&gt;click the top arrow (promote)&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Follow the steps&lt;/STRONG&gt;&lt;SPAN&gt; as shown in the below graphic:&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>Fri, 15 Jun 2012 13:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220582#M5200</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-06-15T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the feature values</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220583#M5201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great!&amp;nbsp; Your response made me recall some of my codes made 2 years ago.&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 15:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-retrieve-the-feature-values/m-p/220583#M5201</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2012-06-15T15:12:22Z</dc:date>
    </item>
  </channel>
</rss>

