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.
NB The code snippets aren't my actually code but just used to illustrate my
point.
Gary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:269624
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4