Hi all,
I'm trying to achieve something that i thought "quite simple" since
several days without success. I embedded a query in another to
create a single "object" - here's the cfc :
<cfcomponent>
<cffunction name="getFullInfo" access="remote"
returntype="query">
<cfscript>
qTest = QueryNew("YEAR,NUM,MESSAGE");
QueryAddRow(qTest,4);
qTest.Year[1] = 2006;
qTest.Year[2] = 2006;
qTest.Year[3] = 2006;
qTest.Year[4] = 2006;
qTest.Num[1] = 1;
qTest.Num[2] = 2;
qTest.Num[3] = 3;
qTest.Num[4] = 4;
qTest.Message[1] = QueryNew("YEAR,NUM");
QueryAddRow(qTest.Message[1],2);
qTest.Message[1].Year[1] = 2006;
qTest.Message[1].Year[2] = 2006;
qTest.Message[1].Num[1] = 1034;
qTest.Message[1].Num[2] = 1035;
</cfscript>
<cfreturn qTest>
</cffunction>
</cfcomponent>
Dumping the result in Coldfusion gives me what i expected.
Displaying the content (in a Datagrid for example) of the main query
is OK for the first two columns containing data, but i cannot find a
way to display th content of the embedded query (in another
datagrid). Displaying the content of the column message gives me
[Object][Object] and i didn't find a way to transform it to another
ArrayCollection.
I hope it's clear because it's not so easy to explain :-) Even if
it's not necessary usefull to do it that way, i really need to
understand...
Thanks in advance,
Cyril
--
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/