Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
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: cr...@sumitsolutions.co.za
Website:
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

 

<>

Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
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

2010-09-08 Thread Alex Harui
Try:



Or



On 9/8/10 3:48 AM, "Xtream96"  wrote:







I have a similiar problem:

My XML is:


 
 FACTORY STATUS

file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png
 
 
 FACTORY STATUS

file:/D:/Work/RapidReport/Images/Charts/Vertical-Linear-Gauges.png
 


My Datagroup:



My HttpService:



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