I am a .Net developer and a Flex newbie. I am using Flex
So here is my issue: I am trying to bind the result of a web
service to a XMLListCollection. So as per the Flex documentation I
set the result format to E4X and the source for the
XMLListCollection as ws.op.lastResult. And when I try using the
XMLListCollection as a dataProvider for a grid I am not able to see
But on the contrary if I DONT use XMLListCollection and leave
the resultFormat as object, I am able to bind the web service
result directly to the grid.
I need the XMLListCollection because I would like to use the
filterFunction of XMLListCollection.
Here is the code that is not giving me results:
The problem is almos certainly with the dataProvider
reference expression. the problem with doing it like you are is
that you can't easily debug your result.
I advise using a result handler function. get the
event.result, cast/convert it to XML, then trace the
xml.toXMLString. You will be able to see your data and its exact
From looking at your code, I suspect you need to go one level
deeper into the xml. The expression needs to return an XMLList.
Looks like you are referencing the root node. Can't tell you what
to use because I don't know your xml.