![]() |
![]() |
||||||
|
|||||||
| Tags: converting, hierarchicaldata, java, type |
![]() |
|
|||
|
Hi All,
How to read the children data from the ArrayCollection at the java end. Explanation: I have an ArrayCollection with children and I am passing this as a dataprovider to the ADG (as HierarchicalData). private var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:"Southwest", children: [ {Region:"Arizona", children: [ {Territory_Rep:"Barbara Jennings", Actual:38865, Estimate:40000}, {Territory_Rep:"Dana Binn", Actual:29885, Estimate:30000}]}, {Region:"Central California", children: [ {Territory_Rep:"Joe Smith", Actual:29134, Estimate:30000}]}, {Region:"Nevada", children: [ {Territory_Rep:"Bethany Pittman", Actual:52888, Estimate:45000}]}, {Region:"Northern California", children: [ {Territory_Rep:"Lauren Ipsum", Actual:38805, Estimate:40000}, {Territory_Rep:"T.R. Smith", Actual:55498, Estimate:40000}]}, {Region:"Southern California", children: [ {Territory_Rep:"Alice Treu", Actual:44985, Estimate:45000}, {Territory_Rep:"Jane Grove", Actual:44913, Estimate:45000}]} ]} And I am passing this ArrayCollection to the Java method. I did not find any method to read the children from the ArrayCollection. And also, How to convert HierarchicalData type to Java. Please help me to resolve this issue. Thanks, Giri |
| Sponsored Links |
|
|||
|
Adobe Newsbot hopes that the following resources helps you. NewsBot is experimental and any feedback (reply to this post) on its utility will be appreciated:
Flex 3 - Explicit parameter passing and parameter binding: If you pass an array to the method, it returns the same array. For information about working with ArrayCollection objects, see Using Data Providers and Link: http://livedocs.adobe.com/flex/3/htm..._access_5.html Dave Carabetta: My Thoughts: Array vs. ArrayCollection in Flex 2: Personal thoughts of Dave Carabetta: Array vs. ArrayCollection in Flex 2 ... in CF, we only have an Array datatype while most other languages (Java, C#, Link: http://www.cbetta.com/blog/index.cfm...ldfusion-slant Flex 3 - Setting component properties: The Adobe Flex Language Reference documents the Array properties that define a .... root of the Java web application in which a Flex application is running. Link: http://livedocs.adobe.com/flex/3/html/mxmlSyntax_3.html Difference between Array & ArrayCollection? | flexdeveloper.eu forums: Array vs. ArrayCollection in Flex 2 (with a ColdFusion Slant) ... in CF, we only have an Array datatype while most other languages (Java, C#, etc. Link: http://www.flexdeveloper.eu/forums/i...opic,44.0.html Flex 3 - Using WebService components: Flex uses Java server sessions to maintain the state of web service endpoints that use ..... Array of objects. mx.collections.ArrayCollection of objects Link: http://livedocs.adobe.com/flex/3/htm..._access_3.html Flex Monkey Patches arraycollection.-array-collection: Tags: arraycollection.-array-collection, datagrid, dataprovider, filter, filtering, .... epox on Flex linebreaks in DataGrid itemRenderer and itemEditors Link: http://blog.flexmonkeypatches.com/ta...ay-collection/ Disclaimer: This response is generated automatically by the Adobe NewsBot based on Adobe [L=Community Engine]http://community.adobe.com/ion/search.html[/L]. |
|
|||
|
Hi,
If you are using Remoting of BlazeDS to invoke the Java method from Flex, ArrayCollection will be converted to ArrayList on the Java side. The ArrayList will contain the Objects you are passing. In your case as you are not mapping your objects to the Java classes, the objects will be received as objects of the type Object to the Java method. Hope this helps. |
|
|||
|
Hi,
You can find details on how to map AS objects to Java objects at the URL below. http://sujitreddyg.wordpress.com/200...objects-to-jav a-objects/ Hope this helps. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise