I'm hitting a simple CFC from Flex:

        <cffunction name="getRooms" access="public" returntype="Query">

                <cfargument name="UserVO" required="true" type="UserVO">
                
                <cfquery name="rooms" datasource="brainwave">
                    SELECT * FROM rooms
                    WHERE clientid =
                    <cfqueryparam value="#arguments.UserVO.clientid#"  
cfsqltype="cf_sql_integer" maxlength="11">
                </cfquery>
                
                <cfreturn #rooms#>
        </cffunction>


My recordset arrives fine in Flex and it consists of a bunch of  
records, each representing a Room. Is there a way for me to return  
this Recordset from CF so that each record is already cast as a RoomVO?
Currently in Flex, event.result comes in as an Arraycollection of  
Objects, I'd like those Objects to be RoomVOs.

Regards,

Stefan





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5013
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to