RE: [flexcoders] Array of object types returned from remote objects
Tom, How can you have missed everything ColdFusion team has been speaking about all this time? ColdFusion Extensions can make your life a lot easier (believe me). Generate those files and you'll see what must implement, but basically 1) in your AS : [RemoteClass(alias="mypath.to.my.cfcomponent.thiscaseReactorTomssql")] 2) your CFC (VO in CF side): Have a alias attribute in your component tag with the dot path notation like " mypath.to.my.cfcomponent.thiscaseReactorTomssql" Have 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: quarta-feira, 5 de Julho de 2006 9:32 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Array of object types returned from remote objects On Tuesday 04 July 2006 17:02, João Fernandes wrote: > Tom if you want to avoid casting all away in your flex app you can > follow the "new" rules for mapping cfcs & AS. Instead of returning an > array of struts, return an array of components with > define in them (very same order or it won't work). Better, right click > on your AS file and use the CF extensions to generate your cfc. > > 1) bind your AS class to your cfc generated object You mean the ActionScript value object ? I'm guessing there is some square-bracket compiler hint I need in the class ? > 2) in your remote function call define returntype="mypath.to.my.cfc[]" > <--- return type of array of mypath.to.my.cfc (don't know if it's > mandatory) That would be the returnType of the CFC method being called ? > generate your AS & CFC based on your table *Ahh* :-) Choosing 'wizard' and then 'CFC' gives you the option to make ActionScript classes too. That's a big help. Wish me luck :-) -- 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. 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 Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/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/
Re: [flexcoders] Array of object types returned from remote objects
On Tuesday 04 July 2006 17:02, João Fernandes wrote: > Tom if you want to avoid casting all away in your flex app you can follow > the "new" rules for mapping cfcs & AS. Instead of returning an array of > struts, return an array of components with define in them > (very same order or it won't work). Better, right click on your AS file and > use the CF extensions to generate your cfc. > > 1) bind your AS class to your cfc generated object You mean the ActionScript value object ? I'm guessing there is some square-bracket compiler hint I need in the class ? > 2) in your remote function call define returntype="mypath.to.my.cfc[]" <--- > return type of array of mypath.to.my.cfc (don't know if it's mandatory) That would be the returnType of the CFC method being called ? > generate your AS & CFC based on your table *Ahh* :-) Choosing 'wizard' and then 'CFC' gives you the option to make ActionScript classes too. That's a big help. Wish me luck :-) -- 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. 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/
RE: [flexcoders] Array of object types returned from remote objects
Tom if you want to avoid casting all away in your flex app you can follow the "new" rules for mapping cfcs & AS. Instead of returning an array of struts, return an array of components with define in them (very same order or it won't work). Better, right click on your AS file and use the CF extensions to generate your cfc. 1) bind your AS class to your cfc generated object 2) in your remote function call define returntype="mypath.to.my.cfc[]" <--- return type of array of mypath.to.my.cfc (don't know if it's mandatory) If it's not clear , generate your AS & CFC based on your table and check what was generated. 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: terça-feira, 4 de Julho de 2006 16:27 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Array of object types returned from remote objects On Tuesday 04 July 2006 16:11, João Fernandes wrote: > If you're using ColdFusion why don't you map your AS class to your CFC > and Sounds good- I take it that says 'when I invoke this RemoteObject, the results are of this type ? Do you have a pointer how to do this ? > get those objects correctly translated? Are you returning Reactor's TO > by any chance? No, not in this case :-) It's an Array of Struts at the ColdFusion end, with the Strut having key/value pairs that match the properties of the ActionScript value object. -- 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 -- 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/
Re: [flexcoders] Array of object types returned from remote objects
On Tuesday 04 July 2006 16:11, João Fernandes wrote: > If you're using ColdFusion why don't you map your AS class to your CFC and Sounds good- I take it that says 'when I invoke this RemoteObject, the results are of this type ? Do you have a pointer how to do this ? > get those objects correctly translated? Are you returning Reactor's TO by > any chance? No, not in this case :-) It's an Array of Struts at the ColdFusion end, with the Strut having key/value pairs that match the properties of the ActionScript value object. -- 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 <*> 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/
RE: [flexcoders] Array of object types returned from remote objects
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: terça-feira, 4 de Julho de 2006 15:05 To: flexcoders@yahoogroups.com 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/
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 <*> 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/
RE: [flexcoders] Array of object types returned from remote objects
Are you applying this to an array or an ArrayCollection? 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: terça-feira, 4 de Julho de 2006 13:27 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Array of object types returned from remote objects On Tuesday 04 July 2006 13:17, Tom Chiverton wrote: > I don't need to put the fully qualified class name in the hint do I ? Didn't work > Or change the declaration / add hint in the model for the > ArrayCollection to have the same hint ? Add the hint, fully qualified and not, still didn't work. This is going to be one of those 'easy when you know how' ones isn't it ? -- 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/
Re: [flexcoders] Array of object types returned from remote objects
On Tuesday 04 July 2006 13:17, Tom Chiverton wrote: > I don't need to put the fully qualified class name in the hint do I ? Didn't work > Or change the declaration / add hint in the model for the ArrayCollection > to have the same hint ? Add the hint, fully qualified and not, still didn't work. This is going to be one of those 'easy when you know how' ones isn't it ? -- 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 <*> 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/
Re: [flexcoders] Array of object types returned from remote objects
On Tuesday 04 July 2006 12:51, João Fernandes wrote: > [ArrayElementType("MyObjectType")] Doesn't seem to work, get 'can't convert [EMAIL PROTECTED] to MyObjectType' errors at run time. I don't need to put the fully qualified class name in the hint do I ? The docs are lacking on this point. Or change the declaration / add hint in the model for the ArrayCollection to have the same hint ? Currently, it's still just public var rejectedCreationRequests:ArrayCollection; -- 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 <*> 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/
RE: [flexcoders] Array of object types returned from remote objects
Tom try to define like this: [ArrayElementType("MyObjectType")] var somearray:Array = … 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] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: terça-feira, 4 de Julho de 2006 11:55 To: flexcoders@yahoogroups.com Subject: [flexcoders] Array of object types returned from remote objects Currently we're doing: var accfiles:Array = event.result.awaitingCollectionByArchiving as Array; model.rejectedCreationRequests = new ArrayCollection(files); Which is fine, but it creates an ArrayCollection of objects. Is there anyway to say 'this array you just got is an array of MyObjectType' ? The current approach is causing us a few issues with data binding, because although we can make a dataGrid's dataProvider model.rejectedCreationRequests, the grids selectedItem is just an object, and if we try and cast it (var temp:MyObjectType = grid.selectedItem as MyObjectType) we get coercion errors :-( -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Array of object types returned from remote objects
Currently we're doing: var accfiles:Array = event.result.awaitingCollectionByArchiving as Array; model.rejectedCreationRequests = new ArrayCollection(files); Which is fine, but it creates an ArrayCollection of objects. Is there anyway to say 'this array you just got is an array of MyObjectType' ? The current approach is causing us a few issues with data binding, because although we can make a dataGrid's dataProvider model.rejectedCreationRequests, the grids selectedItem is just an object, and if we try and cast it (var temp:MyObjectType = grid.selectedItem as MyObjectType) we get coercion errors :-( -- 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. Yahoo! Groups Sponsor ~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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/