Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
garag #1
Switch from Flex Builder 2 to Flex Builder 3
Hi All,
I've developed an application in Flex Builder 2 and I'm trying to switch it in
Flex Builder 3.
My application receives data from a webservice, it returns a xml like this
<result>
<item _id="1">
<field1>value1</field1>
<field2>value2</field2>
</item>
<item _id="2">
<field1>value1</field1>
<field2>value2</field2>
</item>
</result>
In Flex Bulder 2, I'm using an instruction like this:
var results : ArrayCollection = new ArrayCollection (
[event.result.CallResult.result.item] [0]);
in order to retrieve the data from the web sarvice call and link this data to
the property dataprovider of a datagrid of my application: it works perfectly.
In the ArrayCollection named results, I see the nodes returned by the
webservice call and the attributes of the xml as well.
Switching on Flex Builder 3, the same code used in Flex Builder 2 doesn't
work. I mean that in Flex Builder 3 I'm not able to see, in the
ArrayCollection, the attributes of the xml returned by webservice call but only
the nodes of the xml.
Is it a change (worst change) implemented in Flex Builder 3?
If I try to format in "e4x" the data returned by the webservice, I obtain an
XMLList collection. How is possible to link this data to my application
datagrid?
Thank you.
Regards
garag Guest
-
Serious bug in Flex Builder 3
I just lost a whole morning's work. Here's what I did: I needed to base a new component on an existing one. So, in the FB3 file list I... -
Flex Charting 2 with Flex Builder 3
I've recently inherited a code base that was built on Flex 2 and uses the Flex 2 Charting component. Flex Builder 3 is the only version of Builder... -
Problem in Flex Builder UI After Installing Flex 3
So, here's an interesting issue. And my apology in advance if it has been reported before. But I have spent the better part of two days installing... -
Flex/Flex Builder Trial
Anyone, I am interested in trying the flex builder application. I am not a programmer so I am a bit unsure of what components I need to run the... -
Install Flex Builder 2 on mac
Hi there, Is it possible to have the Flex Builder 2 Alpha on Mac ? Download link say only windows but Eclipse is CrossPlatform ? Also MM provide... -
ntsiii #2
Re: Switch from Flex Builder 2 to Flex Builder 3
Note that if you are not already using reslutFormat="e4x", you do not have xml
at all. You have a tree of dynamic objects.
There were some changes to this conversion process, partly as I recall to
better integrate with dot.net web services that returned DataTables. If
youwant to stick with the nested object structure, perhaps you can find the
description of the conversion in the docs. I don't use this, I prefer e4x xml.
[Bindable]private var _xlcItems:XMLListCollection; //bind the dg to this
instance-level var
In the result handler:
var xmlResults : XML = XML(event.result);
trace(xmlResults)
var xlItems:XMLList = xmlResults.item;
trace(xlItems.length())
xlcItems = new XMLListCollection(xlItems)
Tracy
ntsiii Guest



Reply With Quote

