<?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: Cannot Zoom to data found from IdentifyTask in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452985#M10463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MichaelK,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a jpg image file to this thread. These are the errors coming from the app I'm currently working on... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At line 136 in bldgSchIdentify.mxml, here is the script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 protected function onItemClick(event:ListEvent):void
 {
&amp;nbsp; var mygraphic:Graphic = findAttributes(event.itemRenderer.data); //line 136
&amp;nbsp; mygraphic.symbol = sms_fExp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At line 143 in bldgSchIdentify.mxml, code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public function findAttributes(myAttr:Object):Graphic {
 for each(var mGra:Graphic in myGraphicsLayer.graphicProvider) {
&amp;nbsp; if(mGra.attributes === myAttr) {
&amp;nbsp;&amp;nbsp; myMap.extent = mGra.geometry.extent.expand(2.8); //line 143
&amp;nbsp;&amp;nbsp; return mGra;
&amp;nbsp; }
 }
 return null;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here's the final code line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;mx:DataGrid id="myGrid" width="100%" height="100%" visible="false" color="0x006699"
 editable="false" itemClick="onItemClick(event)" /&amp;gt; &amp;lt;!--line 201--&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:12:39 GMT</pubDate>
    <dc:creator>DidumAbraham</dc:creator>
    <dc:date>2021-12-11T20:12:39Z</dc:date>
    <item>
      <title>Cannot Zoom to data found from IdentifyTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452983#M10461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the identify feature from esri samples page at &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html"&gt;http://help.arcgis.com/en/webapi/flex/samples/index.html&lt;/A&gt;&lt;SPAN&gt;. I have populated the data found to a datagrid, but when I click on a record in the datagrid to zoom to that data on the map, it fails to do so and results in error.&amp;nbsp; If you've found a way to around this issue, I could use your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 19:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452983#M10461</guid>
      <dc:creator>DidumAbraham</dc:creator>
      <dc:date>2011-05-27T19:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Zoom to data found from IdentifyTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452984#M10462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the error? Can you provide any more details?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 20:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452984#M10462</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-27T20:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Zoom to data found from IdentifyTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452985#M10463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;MichaelK,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a jpg image file to this thread. These are the errors coming from the app I'm currently working on... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At line 136 in bldgSchIdentify.mxml, here is the script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 protected function onItemClick(event:ListEvent):void
 {
&amp;nbsp; var mygraphic:Graphic = findAttributes(event.itemRenderer.data); //line 136
&amp;nbsp; mygraphic.symbol = sms_fExp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At line 143 in bldgSchIdentify.mxml, code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
public function findAttributes(myAttr:Object):Graphic {
 for each(var mGra:Graphic in myGraphicsLayer.graphicProvider) {
&amp;nbsp; if(mGra.attributes === myAttr) {
&amp;nbsp;&amp;nbsp; myMap.extent = mGra.geometry.extent.expand(2.8); //line 143
&amp;nbsp;&amp;nbsp; return mGra;
&amp;nbsp; }
 }
 return null;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here's the final code line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;mx:DataGrid id="myGrid" width="100%" height="100%" visible="false" color="0x006699"
 editable="false" itemClick="onItemClick(event)" /&amp;gt; &amp;lt;!--line 201--&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452985#M10463</guid>
      <dc:creator>DidumAbraham</dc:creator>
      <dc:date>2021-12-11T20:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Zoom to data found from IdentifyTask</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452986#M10464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Disregard this thread as I have resolved my issues and had completed all widgets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 04:13:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/cannot-zoom-to-data-found-from-identifytask/m-p/452986#M10464</guid>
      <dc:creator>DidumAbraham</dc:creator>
      <dc:date>2011-08-06T04:13:44Z</dc:date>
    </item>
  </channel>
</rss>

