In Flex Bulder 2, I'm using an instruction like this:
var results : ArrayCollection = new ArrayCollection (
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?
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);
var xlItems:XMLList = xmlResults.item;
xlcItems = new XMLListCollection(xlItems)