Hi all! I've just started with Flex and I have some doubts I hope
you could solve.
I have a Datagrid filled with the result of a Java Method
(getRestaurants). This method returns a list of Restaurant objects
with the fields "name" and "adress".
<mx:DataGridColumn headerText="Name" dataField="name"/>
<mx:DataGridColumn headerText="Address" dataField="address"/>
I have no problems doing this, but I need to show another property
called "position". This property is an instance of a Position class,
whose properties are "x" and "y".
I mean:
Restaurant {
name: String;
address: String;
position: Position; // Contains x and y
}
In order to show "x" and "y" in the Datagrid, I'd need something
like this:
<mx:DataGridColumn headerText="X" dataField="position.x"/>
but it doesn´t work. I've tried in several ways, but with no results.
I've checked the field "position" and it contains the correct
values. So, I only need to show them!!.How could I do this?
I'd be very pleased if you could help me!
Thanks in advance!
P.S: Sorry for my English :)
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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/