<?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 Re: customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485183#M13633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't post part of the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;queryFeaturesGraphical because the program is stuck when performing &lt;/SPAN&gt;onFieldValuesRereivalsuccess at the line of&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;mFldValues = uniqueArray(fset.features);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the code for the query part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 03:07:50 GMT</pubDate>
    <dc:creator>WuYang</dc:creator>
    <dc:date>2014-11-27T03:07:50Z</dc:date>
    <item>
      <title>customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485181#M13631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am new to flex. Now I am trying to customize the SearchWidget from arcgis-samples-flex-3.6-src. What I want to do is:&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;(1) use the drawing tools provide in the sample on a layer from the layer list.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;(2) get a specified field values of all the features in the drawing area (of the selected layer) in a arraylist.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Now I can access the layer, but I failed to get the expected arraylist (the fieldValues in the following code).&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222;"&gt;private function queryFeaturesGraphical(geom:Geometry):void&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; hideInfoWindow();&lt;BR /&gt;&amp;nbsp; var searchLayer:Object = cboLayerGraphical.selectedItem;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; queryLayer = searchLayer.layer;&lt;BR /&gt;&amp;nbsp; retrieveFieldValue(searchLayer);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;private function retrieveFieldValue(obj:Object):void&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; CursorManager.removeBusyCursor();&lt;BR /&gt;&amp;nbsp; var fieldset:FeatureSet = obj as FeatureSet;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; fieldValues = uniqueArray(fieldset.features);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;private function uniqueArray(arr:Array) : Array &lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; var unique : Array = new Array();&lt;BR /&gt;&amp;nbsp; var contains : Boolean;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for( var i:Number = 0; i&amp;lt;arr.length; i++ ) &lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; contains = false;&lt;BR /&gt;&amp;nbsp; unique.push(arr&lt;I&gt;);&amp;nbsp; &lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; return unique;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;What I use is arcgis flex api 3.6 and flash builder 4.6.&lt;/P&gt;&lt;P style="margin-bottom: 1em; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Would anybody please advice me what is wrong with my code? thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 08:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485181#M13631</guid>
      <dc:creator>WuYang</dc:creator>
      <dc:date>2014-11-25T08:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485182#M13632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leaf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Is there parts of your queryFeaturesGraphical function that you have omitted for some reason?&lt;/P&gt;&lt;P&gt;I don't search anywhere in that function that an actual query occurs on the queryLayer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 13:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485182#M13632</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-25T13:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485183#M13633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't post part of the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;queryFeaturesGraphical because the program is stuck when performing &lt;/SPAN&gt;onFieldValuesRereivalsuccess at the line of&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;mFldValues = uniqueArray(fset.features);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the code for the query part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 03:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485183#M13633</guid>
      <dc:creator>WuYang</dc:creator>
      <dc:date>2014-11-27T03:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485184#M13634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am trying to confirm whether I can get the features selected first, in this case I follow the SearchWidget (just modified the xml to catering to my map service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it is a different question, I posted it as a new thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2112" data-containertype="14" data-objectid="117907" data-objecttype="1" href="https://community.esri.com/thread/117907"&gt;https://community.esri.com//thread/117907&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if you can have a look, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 08:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485184#M13634</guid>
      <dc:creator>WuYang</dc:creator>
      <dc:date>2014-12-02T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: customized arcgis sample for flex SearchWidget cannot get the expect field value arraylist</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485185#M13635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already got the issue fixed, thanks for the kind help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 06:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/customized-arcgis-sample-for-flex-searchwidget/m-p/485185#M13635</guid>
      <dc:creator>WuYang</dc:creator>
      <dc:date>2014-12-03T06:27:25Z</dc:date>
    </item>
  </channel>
</rss>

