<?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: Please help on passing data.. in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280270#M6646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://corlan.org/2011/01/12/understanding-flex-mobile-views-and-viewnavigator/"&gt;Understanding Flex Mobile View and ViewNavigator&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you want to pass some data from one view to another (for example an ArrayCollection or some other Data Model), then you can use the second argument of the navigator.pushView() method:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;navigator.pushView(SecondScreen, myData);&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2012 09:48:13 GMT</pubDate>
    <dc:creator>IvanBespalov</dc:creator>
    <dc:date>2012-03-26T09:48:13Z</dc:date>
    <item>
      <title>Please help on passing data..</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280269#M6645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can someone please give me an idea on how can I pass my attributes to another view? Please please please. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In parsing my attributes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; var x:XML = XML(event.result); &amp;nbsp;&amp;nbsp;&amp;nbsp; pntList = x..entry; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i:int = 0; i &amp;lt; pntList.length(); i++){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var latlong:Array = pntList&lt;I&gt;.point.split(" "); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attributes:Object = new Object(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attributes.name = pntList&lt;I&gt;.name; // attributes["name"] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attributes.region = pntList&lt;I&gt;.region; // attributes["region"] &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attributes.summary = pntList&lt;I&gt;.summary; // attributes["summary"]&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In accessing my attributes,&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function mClick(event:MouseEvent):void &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; var gra:Graphic = event.target as Graphic; &amp;nbsp;&amp;nbsp;&amp;nbsp; var vbox:VBox = new VBox(); &amp;nbsp;&amp;nbsp;&amp;nbsp; vbox.height = 40; &amp;nbsp;&amp;nbsp;&amp;nbsp; vbox.width = 170; &amp;nbsp;&amp;nbsp;&amp;nbsp; vbox.label = gra.attributes.name.toString(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var button:Button = new Button(); &amp;nbsp;&amp;nbsp;&amp;nbsp; button.height = 40; &amp;nbsp;&amp;nbsp;&amp;nbsp; button.width = 170; &amp;nbsp;&amp;nbsp;&amp;nbsp; button.label = gra.attributes.region.toString(); &amp;nbsp;&amp;nbsp;&amp;nbsp; button.addEventListener(MouseEvent.CLICK, click); &amp;nbsp;&amp;nbsp;&amp;nbsp; vbox.addChild(button); &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.content = vbox; &amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.closeButton.height = 15; &amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.closeButton.width = 15; &amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(gra.geometry as MapPoint); &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my problem how can I pass my attributes to the view, Properties.. Please any idea? I tried some codes but didn't work... Please..&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;private function click(event:MouseEvent):void &amp;nbsp;&amp;nbsp; {&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; navigator.pushView(Properties); &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 09:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280269#M6645</guid>
      <dc:creator>sherlytobias</dc:creator>
      <dc:date>2012-03-26T09:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Please help on passing data..</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280270#M6646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://corlan.org/2011/01/12/understanding-flex-mobile-views-and-viewnavigator/"&gt;Understanding Flex Mobile View and ViewNavigator&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you want to pass some data from one view to another (for example an ArrayCollection or some other Data Model), then you can use the second argument of the navigator.pushView() method:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;navigator.pushView(SecondScreen, myData);&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 09:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280270#M6646</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-03-26T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Please help on passing data..</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280271#M6647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@saibotehs, one way to do this if you have complex attributes is to set up a SharedObject. When the new view becomes active you can then grab the attributes from the SharedObject. The advantage of this pattern is it gives you a central location to manage all your application attributes. There's an example of this and other best practices built into this demo app: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=f30c1e7747db417cae341fdeca2eb77e" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=f30c1e7747db417cae341fdeca2eb77e&lt;/A&gt;&lt;SPAN&gt;. All code is included.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 14:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/please-help-on-passing-data/m-p/280271#M6647</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-04-04T14:50:44Z</dc:date>
    </item>
  </channel>
</rss>

