View Single Post
Old 07-02-2009, 02:00 PM   PM User | #3
loki421
Regular Coder

 
Join Date: Feb 2009
Location: Worcester
Posts: 172
Thanks: 13
Thanked 6 Times in 6 Posts
loki421 is an unknown quantity at this point
Ok, i kida follow you until the listQualify, but think i get what's going on here, thanks

Problem is i need to return the results to my Flex application as an array or arrayCollection (don't think there's much difference??)

So i had a go at trying to build the array in CF but it's giving me an error 'unable to invoke CFC, error executing database query'

i tried using
Code:
<cfreturn qData />"
Code:
<cfset myArray = {} /><!--- this goes at the top? --->

<cfset myArray.result = arrayNew(1) />
		
	<cfloop query="qData" >
		<cfset myArray.temp = {} />
		<cfset myArray.column1 = qData.column1 />
		<cfset myArray.column2 = qData.column2 />
		<cfset myArray.column3 = qData.column3 />
		<cfset arrayAppend(myArray.result,myArray.temp) />
	</cfloop>
		
	<cfreturn myArray.result />
Any ideas how i could get this back to Flex as an array? Both ways are giving me errors

Hope you can help
loki421 is offline   Reply With Quote