<?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: Flex select and zoom to a feature by values from datagrid in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625360#M18582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK, I have commented out many line (unused or unneeded) and made several coding comments, and added some code. Take a look at these changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 14:18:19 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-11-24T14:18:19Z</dc:date>
    <item>
      <title>Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625351#M18573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;In my flex application, I have a function to retrieve feature attributes in a datagrid.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the datagrid, I add a context menu "Select and Zoom", when click this context menu on a selected row, I need to select and zoom to the feature based on the "Item No" and "Item Sub No" value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="31412" alt="99999999999999999.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/31412_99999999999999999.jpg" style="width: 620px; height: 92px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The feature layer is a polyline layer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried to find a solution from ESRI smaple, but no luck.&amp;nbsp; Could anybody please give me help on this? Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Adobe Flash Builder 4.6 and arcgis api for flex 3.6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 08:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625351#M18573</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-19T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625352#M18574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is your datagrid populated by a QueryTask results (i.e. Graphics.attributes)? What code do you currently have for the Select and Zoom function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 13:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625352#M18574</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-19T13:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625353#M18575</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;It is select by attribute, I found Mark Hoyland's sample which based on your eSearch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; onSelectItem(e:ContextMenuEvent):&lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(datagrid.selectedIndex &amp;gt;= 0){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"selected Item No = "&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; + datagrid.selectedItem.itemNo);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"selected Item Sub No = "&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; + datagrid.selectedItem.itemSubNo);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;this&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.cursorManager.setBusyCursor();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="; color: #6699cc; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; query:Query = &lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Query;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = &lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"SELECT * from dev_db.DBO.ItemDetails WHERE Item_No = '"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; + datagrid.selectedItem.itemNo + &lt;/SPAN&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"' and Sub_No = '"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; + datagrid.selectedItem.itemSubNo + &lt;/SPAN&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"'"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; AsyncResponder(onSelectResult, onSelectFault, targetLayer)); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"Select a record first"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;"ATTENTION"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;private&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; onSelectResult(info:Array, token:FeatureLayer = &lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;void {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.cursorManager.removeBusyCursor();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #6699cc; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; fl:FeatureLayer = token;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; (fl.selectedFeatures.length == 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Selection completed but found no features. Please check your parameters."&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Nothing Found"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, Alert.OK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #009900; font-size: 10pt;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;private&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #339966; font-size: 10pt;"&gt;&lt;STRONG&gt;function&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; onSelectFault(info:Object, token:Object = &lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;{&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #0033ff; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.cursorManager.removeBusyCursor();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Could not complete Selection. Please try again.\n"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; + info.toString(), &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #990000; font-size: 10pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Selection Error"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, Alert.OK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;All features are in the layer dev_db.DBO.ItemDetails, b&lt;SPAN style="font-size: 10pt;"&gt;ut never select the feature and the busy icon there.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the patient and attention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 06:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625353#M18575</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-20T06:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625354#M18576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I we where you are defining your Query object in your code and setting the busy cursor but I don not see where you are actually executing the QueryTask . Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14164914936907654 jive_text_macro" jivemacro_uid="_14164914936907654"&gt;
&lt;P&gt;&lt;SPAN class="ActionScriptDefault_Text"&gt;queryTask&lt;/SPAN&gt;&lt;SPAN class="ActionScriptOperator"&gt;.&lt;/SPAN&gt;&lt;SPAN class="ActionScriptDefault_Text"&gt;execute&lt;/SPAN&gt;&lt;SPAN class="ActionScriptBracket/Brace"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ActionScriptDefault_Text"&gt;query&lt;/SPAN&gt;&lt;SPAN class="ActionScriptOperator"&gt;,&lt;/SPAN&gt; &lt;SPAN class="ActionScriptReserved" style="color: #0033ff; font-weight: bold;"&gt;new&lt;/SPAN&gt; &lt;SPAN class="ActionScriptDefault_Text"&gt;AsyncResponder&lt;/SPAN&gt;&lt;SPAN class="ActionScriptBracket/Brace"&gt;(&lt;/SPAN&gt;&lt;SPAN class="ActionScriptDefault_Text"&gt;onResult&lt;/SPAN&gt;&lt;SPAN class="ActionScriptOperator"&gt;,&lt;/SPAN&gt; &lt;SPAN class="ActionScriptDefault_Text"&gt;onFault&lt;/SPAN&gt;&lt;SPAN class="ActionScriptBracket/Brace"&gt;)&lt;/SPAN&gt;&lt;SPAN class="ActionScriptBracket/Brace"&gt;)&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 13:52:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625354#M18576</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-20T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625355#M18577</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 updated my onSelectItem in the mxml file as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private function onSelectItem(e:ContextMenuEvent):void{&lt;BR /&gt; if(datagrid.selectedIndex &amp;gt;= 0){&lt;BR /&gt;&amp;nbsp; Alert.show("selected Segment Id = " + datagrid.selectedItem.itemNo);&lt;BR /&gt;&amp;nbsp; Alert.show("selected BQ No = " + datagrid.selectedItem.itemSubNo);&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; this.cursorManager.setBusyCursor();&lt;BR /&gt;&amp;nbsp; var query:Query = new Query;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; query.where = "SELECT * from geri_db.DBO.BQ_Segment_1 WHERE Item_No = '" + datagrid.selectedItem.itemNo + "' and Sub_No = '" + datagrid.selectedItem.itemSubNo + "'";&lt;BR /&gt;&amp;nbsp; queryTask.execute(query, new AsyncResponder(onResult, onFault));&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; function onResult(featureSet:FeatureSet, token:Object = null):void&amp;nbsp; &lt;BR /&gt;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; myGraphicsLayer.clear();&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; if (featureSet.features.length == 0)&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("No feature found. Please try again.");&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; else&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var unionExtent:Extent;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myFirstGraphic:Graphic = featureSet.features[0];&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unionExtent = Polyline(myFirstGraphic.geometry).extent;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var myGraphic1:Graphic in featureSet.features)&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.add(myGraphic1);&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unionExtent = unionExtent.union(Polyline(myGraphic1.geometry).extent);&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MainMap.extent = unionExtent;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;BR /&gt;&amp;nbsp; }&amp;nbsp; &lt;BR /&gt;&amp;nbsp; function onFault(info:Object, token:Object = null):void&amp;nbsp; &lt;BR /&gt;&amp;nbsp; {&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Alert.show(info.toString());&amp;nbsp; &lt;BR /&gt;&amp;nbsp; } &lt;/P&gt;&lt;P&gt;}else{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Alert.show("Select a record first","ATTENTION");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The related components in the mxml is like follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;esri:QueryTask id="queryTask"&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;A href="http://localhost:6080/arcgis/rest/services/MyService/MapServer/1&amp;quot;/"&gt;http://localhost:6080/arcgis/rest/services/MyService/MapServer/1"/&lt;/A&gt;&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;esri:QueryTask id="queryTaskZoom"&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;A href="http://localhost:6080/arcgis/rest/services/MyService/MapServer/1&amp;quot;/"&gt;http://localhost:6080/arcgis/rest/services/MyService/MapServer/1"/&lt;/A&gt;&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;esri:Query id="query" returnGeometry="true" outSpatialReference="{MainMap.spatialReference}"&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;/esri:Query&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;esri:Map id="MainMap"&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;esri:extent&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent xmin="-126" ymin="24" xmax="-67" ymax="50"&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="4326"/&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/esri:extent&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; url="&lt;A href="http://10.180.8.144:6080/arcgis/rest/services/MyService/MapServer&amp;quot;/"&gt;http://10.180.8.144:6080/arcgis/rest/services/MyService/MapServer"/&lt;/A&gt;&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{sfs}" graphicProvider="{lastIdentifyResultGraphic}"/&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esri:Map&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But got "RPC Fault 400" warning as displayed here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="55555555555555555555555555.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/32014_55555555555555555555555555.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 07:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625355#M18577</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-21T07:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625356#M18578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Well I was expecting to see the QueryTask created in the onSelectItem function using action script. an I have no idea why you are showing me a mxml map object as the viewer uses a action script map object from the MapManager.as and each widget has access to that map...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it would be best for you to add an attachment with your whole widget code so I can clear see what you are doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 13:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625356#M18578</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-21T13:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625357#M18579</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 attached my widget package. I am using asp.net to retrieve the data from sql server database. The part of retrieving the data is handled by others, currently I am using a example sql query statement in asp.net (that means every time I will get the same result in the datagrid), what I am focusing is the map part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In "Attribute Search" widget, what I am testing is onclick the "Ok" button and open the datagridview (attribute search results widget).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems I am very far away from the correct way, so sorry to trouble you so many times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 02:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625357#M18579</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-24T02:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625358#M18580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So here is your main issue in the AttributeSearch.mxml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function handleEvent():void
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
//You don't close the widget that the code is running in using this code
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*var widgetId:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("Attribute Search");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_CLOSE, widgetId);*/

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var widgetId2:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("Attribute Search Results");
//ViewerContainer.dispatchEvent has been depreciated, you should have seen the warning in Flash builder about this
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ViewerContainer.dispatchEvent(new AppEvent(AppEvent.WIDGET_RUN, widgetId2));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AppEvent.dispatch(AppEvent.WIDGET_RUN, widgetId2);
//This is how you close the same widget that the code is running in
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.setState("closed");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your AttributeSearchResult.mxml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you are adding a map component to your widget I am not sure... Do you really want a map inside this widget?...&lt;/P&gt;&lt;P&gt;If you are wanting to add layers to the main Viewers map then just use the map keyword in your widgets code.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;/viewer:WidgetTemplate&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Map id="MainMap" width="245" height="42"&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:extent&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Extent xmin="-126" ymin="24" xmax="-67" ymax="50"&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SpatialReference wkid="4326"/&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Extent&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:extent&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISDynamicMapServiceLayer&amp;nbsp; 
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:6080/arcgis/rest/services/MyService/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/MyService/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&amp;nbsp; &lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer id="myGraphicsLayer" symbol="{sfs}" graphicProvider="{lastIdentifyResultGraphic}"/&amp;gt;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map&amp;gt;&amp;nbsp; 
&amp;lt;/viewer:BaseWidget&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This copy you provided of this widget still has issue that I helped you resolve in another thread. Like you GridColumns need to children of a spark ArrayList. and your results from your web service need to be wrapped in an array collection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function GetLoc(event:ResultEvent):void {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Databind data from webservice to datagrid
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datagrid.dataProvider = new ArrayCollection(event.result as Array);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625358#M18580</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625359#M18581</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;Thanks so much for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the error still exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have updated my code accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, I don't need the map component in the widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the selection query I have checked in Arcmap. In arcmap the feature really exist and the query works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 3 warning messages in the flash builder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) 1084:function 'onFault' will be scoped to the default namespace:AttributeSearchResult:intenal. It will not be visible outside of this package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) 1084:function 'onResult' will be scoped to the default namespace:AttributeSearchResult:intenal. It will not be visible outside of this package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3) widgets.MyService.AttributeSearch:WebserviceTest is a module or application that is directly referenced. This will cause widgets.MyService.AttributeSearch:WebserviceTest and all of its dependencies to be linked in with widgets.MyService.AttributeSearch:AttributeSearch. Using an interface is the recommended practice to avoid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 06:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625359#M18581</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-24T06:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625360#M18582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK, I have commented out many line (unused or unneeded) and made several coding comments, and added some code. Take a look at these changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625360#M18582</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-11-24T14:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625361#M18583</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;You are so nice, thanks a lot. This time no fault error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still 2 issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) If I use the updated GetLoc() no result displayed in the datagrid.&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #339966; font-size: 10pt;"&gt;function&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; GetLoc(event:ResultEvent):&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 10pt;"&gt;void&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #009900; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Databind data from webservice to datagrid&lt;/EM&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datagrid.dataProvider = &lt;STRONG style=": ; color: #0033ff; font-size: 10pt;"&gt;new&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; ArrayCollection(event.result &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0033ff; font-size: 10pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; Array);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(2) If I use the old GetLoc function, result will display, but when I try to use "select and zoom", still the same, only the busy cursor there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This time I use another layer and query on the Segment_ID only, the following is what can found in the querytask url.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="5555555555555555555555.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/34093_5555555555555555555555.jpg" style="width: 620px; height: 211px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and query.where = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #990000; font-size: 10pt;"&gt;"Segment_ID ='1988/03-1&lt;/STRONG&gt;&lt;STRONG style=": ; color: #990000; font-size: 10pt;"&gt;'"&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this time use exact value to test&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And what I see in manually select this feature:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="8888888888888888.jpg" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/34200_8888888888888888.jpg" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But still not work. &lt;SPAN style="font-size: 10pt;"&gt;So sorry to trouble so much, but this one drive me crazy.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 03:51:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625361#M18583</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-25T03:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625362#M18584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So have you inspected the query.where string to see if it is what you are expecting by placing a breakpoint in your code or a trace like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = "Item_No = '" + datagrid.selectedItem.itemNo + "' and Sub_No = '" + datagrid.selectedItem.subNo + "'";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(query.where);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625362#M18584</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625363#M18585</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;Yes I trace the query statement and also verified it in arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 01:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625363#M18585</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-26T01:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625364#M18586</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;Currently situation is I can confirm the query feature exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT the strange thing is in both cases(the feature exists or not exist), it always show the busy cursor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What may be the possible reason for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 08:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625364#M18586</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-11-27T08:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625365#M18587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The portions of your code where you are using this.cursorManager.removeBusyCursor(); are not portions that you actually use. So the the busy cursor will stay unless you put that line in some code that is actually being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe try this code update (line 8):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var unionExtent:Extent; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myFirstGraphic:Graphic = featureSet.features[0]; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unionExtent = Polyline(myFirstGraphic.geometry).extent; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var myGraphic1:Graphic in featureSet.features) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.add(myGraphic1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(myGraphic1.geometry !== myFirstGraphic.geometry){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unionExtent = unionExtent.union(Polyline(myGraphic1.geometry).extent);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.extent = unionExtent;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625365#M18587</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625366#M18588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you Robert for the help on this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem still there. I trace the progress and find the application stuck at this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unionExtent = Polyline(myFirstGraphic.geometry).extent;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I found the code will NOT satisfy the condition of :(myGraphic1.geometry !== myFirstGraphic.geometry).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 01:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625366#M18588</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-12-02T01:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625367#M18589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Li Yao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So are you sure that myFirstGraphic.geometry is not null? Are you sure that the geometry is actually a Polyline?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625367#M18589</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-12-02T13:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625368#M18590</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;Yes myFirstGraphic.geometry is not null and the geometry is polyline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code seems partially work now, it can zoom to the feature but not select the feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 03:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625368#M18590</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-12-03T03:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flex select and zoom to a feature by values from datagrid</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625369#M18591</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 2 layers (1 polyline, 1 polygon). I use the same code (except to change polyline to polygon), it works properly (zoom to the feature, also select the feature).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this thread is too long, I create a new thread to make it clear. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 02:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/flex-select-and-zoom-to-a-feature-by-values-from/m-p/625369#M18591</guid>
      <dc:creator>LiYao</dc:creator>
      <dc:date>2014-12-08T02:59:32Z</dc:date>
    </item>
  </channel>
</rss>

