Your post implies version 2.0, with which I have little experience, but I might be able to help anyway. (I don't know cf either!)

The list dataProvider needs to be an array.  In your query, does "ID" resolve to an array?  If so, each of the elements will be an "item object". If not, exactly what is the structure of "lastResult"?

[object Object] means you are trying to display a complex object as text. You will either need to specify a labelField that is a property of each item object, or a labelFunction, the can build the label out of any combination of item object properties needed.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of willmorganuk
Sent: Monday, May 15, 2006 3:07 PM
To: [email protected]
Subject: [flexcoders] Noobie...mx:list dataprovider

Hi All,

How do I get a .cfc query returned from a webservice into an mx:list?
I'm getting [object Object] appear. The getEvents function (method?)
is returning ID and EVENTHEADER as a returntype="query"

I thought that:

dataProvider = "{webservice.getEvents.lastResult.ID}" would work, but
no! I only want to show the ID from the query that the webservice is
sending.

I've played with mx.utils but nothing is working for me today :(

Any help appreciated! Thanks.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to