Question
I want to return an array instead of a query
Dear Forum,
My Flash program uses a web service connector that connects to a CFC. Everything works well with "return type="query.
Now, I would like to add one more row of (calculated) data to the query results. So I thought, let's output the query to an array, add the calculated row, and have the web service return an array instead of a query.
The problem: no column names are delivered to Flash with "return type="array." With return type="query," Flash received the column names from the web service and used those in my datagrid.
Question: should I just use two web services (one with query info and one with calculated data) or is there a way to return column names, query results, and additional info all with one web service call?
Thanks in advance!
P.S. I see using CFDump that a query result is a "special kind" of array. Can anyone explain how this works "behind the scenes?"
My Flash program uses a web service connector that connects to a CFC. Everything works well with "return type="query.
Now, I would like to add one more row of (calculated) data to the query results. So I thought, let's output the query to an array, add the calculated row, and have the web service return an array instead of a query.
The problem: no column names are delivered to Flash with "return type="array." With return type="query," Flash received the column names from the web service and used those in my datagrid.
Question: should I just use two web services (one with query info and one with calculated data) or is there a way to return column names, query results, and additional info all with one web service call?
Thanks in advance!
P.S. I see using CFDump that a query result is a "special kind" of array. Can anyone explain how this works "behind the scenes?"