|
Darius, I don’t know, passing back an uber array
feels a bit monolithic (but maybe good for performance?). Why not break them
down into different Array’s of Value Objects. For example: EmployeeListVO – array of Employee VOs InvoiceListVO – array of Invoice VOs FooListVO – array of Foo VOs Now you have the fine grained control of
just asking for one or all of them. And you can do what you want with each.
We represent our VOs as CFCs. This allows you to type the package path in the
returnType attribute of your CFCs. Queries and Structures are not typed, you
could get anything back and ColdFusion won’t report any problems. How do you
check for a well formed Struct or a well formed Query? You might also want to
look at the advantages of automatic object conversion into ActionScript. You
could have a 1:1 mapping between FooVO.cfc and FooVO.as. Hope that helps, Allen From:
Why not return an arrray
containing recordsets and then setting the recordsets from the array as
dataproviders to your controls by actionscript as follows: resultArray looks like:
[0] Recordset1 (an array of resultobjects from query 1)
[1] Recordset2 (an array of resultobjects from query 2)
[2] Recordset3 (an array of resultobjects from query 3)
…. And: myGrid.dataProvider = resultArray[0];
myOtherGrid.dataProvider = resultArray[1];
… -Mika From:
Hi, -- -- |
- RE: [flexcoders] Is it possible to return multiple recordse... Allen Manning

