cfoutput wants a simple variable name for a query and the workaround you used is the correct way to achieve what you wanted.
On 2/13/07, Gary Boyle <[EMAIL PROTECTED]> wrote: > Hi folks, > > I have an array of queries called MyQueryArray. When I tried to do some > processing based on the first array of the query I was getting an error: > > <cfoutput query = "MyQueryArray[1]"> > <!----processing at this point ---> > . > . > </cfoutput> > > The error I was getting was: > > Attribute validation error for tag cfoutput. > The value of the attribute query, which is currently > "MyQueryArray[1]", is invalid. > > > But I did find a solution: > > <cfset temp = MyQueryArray[1]> > > <cfoutput query = "temp"> > <!----processing at this point ---> > . > . > </cfoutput> > > This works grand. I get the results I expect, but I'm just wondering why I > have to do this? I'm also wondering if this might highlight a deeper > underlying problem (or quirk)? I can see that ColdFusion doesn't like this > direct insertion of variables. If anyone can enlighten me as to why this is, > that would be great. -- CFAJAX docs and other useful articles: http://www.bifrost.com.au/blog/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269625 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

