Re: [flexcoders] DataGroup and XML problem
Hi Alex, Firstly thank you so much for your reply. When I try the first option you suggested: {new XMLListCollection(XMLList(getSpeedDialList.lastResult).SDLIST.charlist)} I stop getting errors, but the item renderer shows nothing. The second option pulls errors 1119 and 1118. I have been searching desperately for a working example of Datagroup with item renderers using XML as the provider, but just have not been able to find one. I welcome any advice you have. Warmest regards and many thanks. Craig
Re: [flexcoders] DataGroup and XML problem
SOLVED thanks to a...@adobe I changed my resultType=E4X and then used {new XMLListCollection(XMLList(getSpeedDialList.lastResult).chartlist)} This solved the problem perfectly. It's important to remember that when using E4X the first node is ignored in your xml. But with out the list conversion (since datagroups support Ilists and so on) I would have been lost. So all credit to Alex Harui from the Flex SDK Team Craig McLeod Phone: 086 111 4512 Fax:033 343 2265 Email:mailto:cr...@sumitsolutions.co.za cr...@sumitsolutions.co.za Website:http://www.sumitsolutions.co.za/ http://www.sumitsolutions.co.za sumit_solutions_logo.jpg This is an email from SUMIT Solutions. The contents are confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed copied or used by anyone other than this addressee. If you receive this email in error please contact SUMIT Solutions on +27 33 343 2888 quoting the name of the sender and the addressee then delete it from your system. Note that neither SUMIT Solutions nor the sender accepts responsibility for viruses and you are advised to scan attachments before opening or saving them image001.jpg
Re: [flexcoders] DataGroup and XML problem
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 cr...@sumitsolutions.co.za wrote: I have a similiar problem: My XML is: SDLIST chartlist reportnameFACTORY STATUS/reportname reportimagefile:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png/reportimage /chartlist chartlist reportnameFACTORY STATUS/reportname reportimagefile:/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