<?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: Identify features to new view in mobile app in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148827#M3447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, as always, Darina &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Raffi, &lt;BR /&gt;&lt;BR /&gt;In the links above, I see a second parameter to the pushView method, which is the data that you want to pass. &lt;BR /&gt;&lt;BR /&gt;Maybe, this what you are missing. &lt;BR /&gt;Another link: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/"&gt;http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2011 14:51:17 GMT</pubDate>
    <dc:creator>raffia</dc:creator>
    <dc:date>2011-08-22T14:51:17Z</dc:date>
    <item>
      <title>Identify features to new view in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148824#M3444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am using Flex 4.5.1 on Win XP, mobile project. A simple identify function that identifies polygon landmarks in the map and send the identify results to a new view, and it is driving me crazy. To send variables to a new view, I used this technique&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://devgirl.org/2011/08/09/flex-mobile-development-passing-data-between-tabs-part-2-includes-source/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://devgirl.org/2011/08/09/flex-mobile-development-passing-data-between-tabs-part-2-includes-source/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then modified it every which way to no avail. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Main App relevant code:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; import model.landmarks;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; import views.landmarkDetailsWindow;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; public var landmarksVar:landmarks = new landmarks();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;landmarks.as code:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
package model
{
 [Bindable]
 public class landmarks
 { 
&amp;nbsp; public var type:String;
&amp;nbsp; public var name:String;
&amp;nbsp; public function landmarks()
&amp;nbsp; {&amp;nbsp; 
&amp;nbsp;&amp;nbsp; this.type = type;
&amp;nbsp;&amp;nbsp; this.name = name;
&amp;nbsp; }
 }
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;First View relevant code, where the identify happens:&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; [Bindable]private var lastIdentifyResultGraphic:Graphic;
&amp;nbsp;&amp;nbsp; var clickGraphic;
&amp;nbsp;&amp;nbsp; private function identifyClickHandeler(event:MapMouseEvent):void
&amp;nbsp;&amp;nbsp; {

&amp;nbsp;&amp;nbsp;&amp;nbsp; myMap.extent = new Extent(31.192271, 30.043800, 31.219662, 30.073615, null);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var identifyParams:IdentifyParameters = new IdentifyParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.tolerance = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.width = myMap.width;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.height = myMap.height;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.geometry = event.mapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.mapExtent = myMap.extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp; identifyParams.spatialReference = myMap.spatialReference;&amp;nbsp;&amp;nbsp;&amp;nbsp; 


&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; identifyTask.execute(identifyParams, new AsyncResponder(myResultFunction, myFaultFunction, clickGraphic));
&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myResultFunction(results:Array, clickGraphic:Graphic = null):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var identWinVar:DE_Mobile_App = parentDocument as DE_Mobile_App;
&amp;nbsp;&amp;nbsp;&amp;nbsp; landmarksVar = identWinVar.landmarksVar;


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(result.layerName == "Landmarks")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
//////The following lines is where I attempt to send the data identified (Type and Name) to the second view
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; landmarksVar.type =result.feature.attributes["Type"].toString(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; landmarksVar.name =result.feature.attributes["Name"].toString(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; navigator.pushView(landmarkDetailsWindow); 


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; private function myFaultFunction():void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp; }



 &amp;lt;esri:Map id="myMap"&amp;gt;
&amp;nbsp; &amp;lt;/esri:extent&amp;gt;
&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://arcgis2.roktech.net/ArcGIS/rest/services/DigitalEg/English_Layered/MapServer"/&amp;gt;
&amp;nbsp; 
 &amp;lt;/esri:Map&amp;gt;

 &amp;lt;s:Button label="Ident" click="myMap.addEventListener(MapMouseEvent.MAP_CLICK, identifyClickHandeler)"/&amp;gt;

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Code for landmarkDetailsWindow:&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &amp;lt;fx:Script&amp;gt;
&amp;nbsp; &amp;lt;![CDATA[
&amp;nbsp;&amp;nbsp; import model.landmarks;
&amp;nbsp;&amp;nbsp; [Bindable]
&amp;nbsp;&amp;nbsp; public var landmarksVar:landmarks ;
&amp;nbsp; ]]&amp;gt;
 &amp;lt;/fx:Script&amp;gt;

 &amp;lt;s:VGroup&amp;gt;
&amp;nbsp; 

 &amp;lt;s:Label&amp;nbsp; text="Type:"/&amp;gt;
 &amp;lt;s:Label&amp;nbsp; text="{landmarksVar.type}"/&amp;gt;
 &amp;lt;s:Label&amp;nbsp; text="Name:"/&amp;gt;
 &amp;lt;s:Label&amp;nbsp; text="{landmarksVar.name}"/&amp;gt;&amp;nbsp; 
 &amp;lt;/s:VGroup&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When debugging, you see that identWinVar.landmarksVar.type and .name are assigned the proper values when a landmark polygon is identified...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried replacing this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;landmarksVar.type =result.feature.attributes["Type"].toString(); &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;identWinVar.landmarksVar.type =result.feature.attributes["Type"].toString(); &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;to no avail. Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148824#M3444</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2021-12-11T08:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features to new view in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148825#M3445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Raffi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My Flex is getting kind of rusty, and you know I haven't done anything mobile, but here are some links that might help&amp;nbsp; you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.adobe.com/en_US/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html#WSe11993ea1bd776e577ad4b2d12a42c5858a-7fff"&gt;http://help.adobe.com/en_US/flex/mobileapps/WSa122979b4619725672e48c412a3e152164-7fff.html#WSe11993ea1bd776e577ad4b2d12a42c5858a-7fff&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://cookbooks.adobe.com/post_Passing_data_between_Views-18854.html"&gt;http://cookbooks.adobe.com/post_Passing_data_between_Views-18854.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. I just open your link, you are using the second approach. Have you tried the first (which is explained in the links above):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://devgirl.org/2011/08/09/flex-mobile-development-passing-data-between-tabs-part-1-includes-source/"&gt;http://devgirl.org/2011/08/09/flex-mobile-development-passing-data-between-tabs-part-1-includes-source/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148825#M3445</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2011-08-22T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features to new view in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148826#M3446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raffi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the links above, I see a second parameter to the pushView method, which is the data that you want to pass. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe, this what you are missing. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another link: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/"&gt;http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:34:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148826#M3446</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2011-08-22T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Identify features to new view in mobile app</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148827#M3447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, as always, Darina &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Raffi, &lt;BR /&gt;&lt;BR /&gt;In the links above, I see a second parameter to the pushView method, which is the data that you want to pass. &lt;BR /&gt;&lt;BR /&gt;Maybe, this what you are missing. &lt;BR /&gt;Another link: &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/"&gt;http://www.unitedmindset.com/jonbcampos/2010/10/25/flex-4-5-mobile-development-post-burrito/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 14:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/identify-features-to-new-view-in-mobile-app/m-p/148827#M3447</guid>
      <dc:creator>raffia</dc:creator>
      <dc:date>2011-08-22T14:51:17Z</dc:date>
    </item>
  </channel>
</rss>

