The resultFormat for RemoteObject defaults to "object".  Are you sure
you do not already have an object in your result?

Use a handler function and inspect the result object in a debugger.
Often the issue with dataProviders is determining the exact reference
pointing at the necessary array.  For instance, sometimes you need
event.result[0].  

If you really have a string of xml, you could load it into an XML class
object and use that as the dataProvider. Currently, referencing the
correct nodes/attributes in XML is a bit clumsy, but I prefer it to the
"black-box" conversion of xml to mx:Object that Flex does automatically.
And unless your data and label properties are top-level attributes of
the item nodes, you might need to use a label function:
http://www.cflex.net/showfiledetails.cfm?ObjectID=258

And in Flex 2, the XML class is significantly enhanced.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Wednesday, November 16, 2005 9:58 AM
To: [email protected]
Subject: [flexcoders] fill ComboBox with XML received by RemoteObject

Hi List,

I tried to fill a ComboBox with XML received by a RemoteObject - with no
success.
The result of the RemoteObject is a String in which is XML Content. If I
create
a Model by <mx:Model id="my_id" source="my_xml_file" /> and bind the
ComboBox
to "my_id" everything works fine.

I searched the web and found a AS class XMLHelper
http://www.cflex.net/showfiledetails.cfm?ObjectID=243 , but the results
of this
classe are not suitable for a ComboBox.

I further searched the web and found how to load dynamically XML using
HTTPService http://www.cflex.net/showfiledetails.cfm?ObjectID=103
This seems to be interesting, but I think this only can be used with XML
files.

Of course it is possible to parse the String received by the
RemoteObject and
build a model ( well - I wasn't successful here, too ), but isn't there
any
"cheap trick" to do something in Actionscript with a XML String which
has
exactly the same result as <mx:Model> with a XML file?

Any help is appreciated.
Christoph




--
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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to