Thanks Matt, that makes sense. However, it still doesn't work. It might be
coming with a different name. Is there any way to display the object and
the name of its attributes?
Thanks,
-Oscar.
"Matt Chotin" To: [email protected]
<[EMAIL PROTECTED]> cc:
Sent by: Subject: RE: [flexcoders] How
to handle a returned Java
[email protected] Collection in Flex -
RemoteObject call
08/05/2005 12:41 AM
Please respond to
flexcoders
It's not getProperty("desc") for normal arrays, only when being used for a
TreeDatatProvider. Try oItem.desc and see if that works.
Matt
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 1:33 PM
To: [email protected]
Subject: RE: [flexcoders] How to handle a returned Java Collection in Flex
- RemoteObject call
Sorry for the late response, I actually got it closer to what I need. I can
see the collection that the Remote Object is returning in a ComboBox.
However, I can see all attributes listed in the ComboBox separated by
commas. I only want to show one of them, the Description. So I figured I
will use labelField or labelFuntion, but didn't work. This is what I have:
Any ideas?
Server side:
public class LookupManager {
...
public Collection getTheList() {
// Set up default response
Collection response = null;
response = theList // gets the list from a Service
return response;
}
...
}
client side:
<mx:Script>
<![CDATA[
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12h842773/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123271230/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
--
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/