Try:
<s:DataGroup x="10" y="42" width="696" height="414"
itemRenderer="myComponents.ChartListComp" dataProvider="{new
XMLListCollection(XMLList(getSpeedDialList.lastResult).SDLIST.charlist)}">
Or
<s:DataGroup x="10" y="42" width="696" height="414"
itemRenderer="myComponents.ChartListComp" dataProvider="{new
XMLListCollection(getSpeedDialList.lastResult).SDLIST.charlist}">
On 9/8/10 3:48 AM, "Xtream96" <[email protected]> wrote:
I have a similiar problem:
My XML is:
<SDLIST>
<chartlist>
<reportname>FACTORY STATUS</reportname>
<reportimage>file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png</reportimage>
</chartlist>
<chartlist>
<reportname>FACTORY STATUS</reportname>
<reportimage>file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png</reportimage>
</chartlist>
</SDLIST>
My Datagroup:
<s:DataGroup x="10" y="42" width="696" height="414"
itemRenderer="myComponents.ChartListComp" dataProvider="{new
XMLListCollection(XML(getSpeedDialList.lastResult).SDLIST.charlist)}">
My HttpService:
<mx:HTTPService resultFormat="e4x" id="getSpeedDialList"
url="{serverURL}/Reporting/GetSpeedDial.xml" useProxy="false" method="POST"
fault="Alert.show('There has been an a problem with the connection.\nPlease
check your internet connnection and try again.' + getSpeedDialList.url
,'Connection Error')" showBusyCursor="true" >
My Item Renderer:
is using {data.reportimage}
Now using the XMLListCollection method I get around the proxy and list
coersion problems,
but the result is my datagroup is showing nothing.
Any ideas where I am going wrong?
--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui