Hi all,

I'm attempting to create a dynamic query name inside a Custom Tag.

It seems to get created fine, but referencing it seems to be the problem.

Here's where I set it up:

<cfquery name="ConvertedFields_#attributes.QueryName#" dbtype="query">

So, yes, it's a Query of Query, if that makes a difference.

But when I try to reference it later, like this:

<cfdump var="ConvertedFields_#attributes.QueryName#">

or

<cfdump var="#ConvertedFields_[attributes.QueryName]#">

or

<cfdump var="#ConvertedFields_['#attributes.QueryName#']#">

It always errors out with "Variable CONVERTEDFIELDS_ is undefined."

I know I'm missing something simple here.  My brain is not recalling how 
to handle these. :-)

Any help is appreciated.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358692
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to