I think (I might be wrong), that arrayElementType can only be defined for 
Arrays and not for ArrayCollection.

"These is filled in in the result handler of a service, which is having an 
array of objects sent to it. These objects have the same properties as the AS 
clas com.hw.foo.bar.vo.FileVO"

If you're using ColdFusion why don't you map your AS class to your CFC and get 
those objects correctly translated? Are you returning Reactor's TO by any 
chance?


João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: terça-feira, 4 de Julho de 2006 15:05
To: [email protected]
Subject: Re: [flexcoders] Array of object types returned from remote objects

On Tuesday 04 July 2006 14:15, João Fernandes wrote:
> Are you applying this to an array or an ArrayCollection?

My cairngorm2 model declares a public property that is an arraycollection:
public var rejectedCreationRequests:ArrayCollection;

These is filled in in the result handler of a service, which is having an array 
of objects sent to it. These objects have the same properties as the AS clas 
com.hw.foo.bar.vo.FileVO, and are saved in the model:
        accfiles:Array = event.result.awaitingCollectionByArchiving as Array;
        model.rejectedCreationRequests = new ArrayCollection(files);

Elsewhere in the app, I have a datagrid:
        mx:DataGrid dataProvider="model.rejectedCreationRequests" id="grid"

At some other points in the code, I want to refer to
        grid.selectedItem
and/or
        model.rejectedCreationRequests[i]
and get back a com.hw.foo.bar.vo.FileVO

Casting (.... as FileVO) or the ArrayElementType hint don't seem to work.

Does that make it clearer ?
--
Tom Chiverton

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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 --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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