Hi Christoph, You should look into the labelFunction property of the DataGrid - it lets you specify a function which formats the data for a datagrid column.
Cheers, Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Christoph Guse Sent: 03 June 2005 15:50 To: [email protected] Subject: [flexcoders] complex Remote Objects Hi List, I use some complex Remote Objects. Let me give an example: class Phones{ public var number:String; public var info:String; } class Person{ public var name:String; public var firstname:String; public var phones:Array; } These are only example classes. In my app they are more complex and of course I uses Object.registerClass(). The phones array in the Person class contains some Phones Objects. Let's say I have a Person object ApplicationPerson in my app and ApplicationPerson is filled with values by a remote call. There is absolutely no problem to access ApplicationPerson.name and ApplicationPerson.firstname, but when I try to fill a DataGrid with ApplicationPerson.phones nothing is shown. There are objects in ApplicationPerson.phones but it seems the information which type of objects are in it is gone. The only possibility I found to access ApplicationPerson.phones is to put a getPhones method in the class Person in which I cast every item in phones. getPhones could look like this: public function getPhones():Array{ var ret:Array = new Array(); for(var i=0; i < phones.length; i++){ ret.push(Phones(phones[i]); } return ret; } Is a explicit getter-method the onliest chance to deal with complex Remote Objects or is there a possibility of "deep-cast" Flex does on its own? Greets Christoph -- **************************************** Christoph Guse L�hstra�e 34 41747 Viersen Tel. 0 21 62 / 50 24 066 Mobil 01 72 / 160 74 84 VoIP 0 12 12 / 39 64 48 831 **************************************** Yahoo! Groups Links 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/

