Re: Dynamic Query Name in Custom Tag?

2014-05-28 Thread Jack Traynor
Quackenbush wrote: Trycfdump var=#variables[ 'ConvertedFields_' attributes.QueryName ]# On Tue, May 27, 2014 at 4:49 PM, Dan LeGated...@legeek.com wrote: 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

Re: Dynamic Query Name in Custom Tag?

2014-05-28 Thread Jack Traynor
]# On Tue, May 27, 2014 at 4:49 PM, Dan LeGated...@legeek.com wrote: 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_

Dynamic Query Name in Custom Tag?

2014-05-27 Thread Dan LeGate
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

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Matt Quackenbush
Try cfdump var=#variables[ 'ConvertedFields_' attributes.QueryName ]# On Tue, May 27, 2014 at 4:49 PM, Dan LeGate d...@legeek.com wrote: 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

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Claude Schnéegans
I'm attempting to create a dynamic query name inside a Custom Tag. If you create anything in the scope variables, from inside a custom tag, it will be created in the custom tag scope only. You must use the caller scope, ie: cfquery name=caller.ConvertedFields_#attributes.QueryName# dbtype

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Claude Schnéegans
Sorry, I was too fast reading your message. If you cfdump var=ConvertedFields_#attributes.QueryName#, I suppose the CFDUMP is still inside the custom tag, so the query should be defined. But if it says Variable CONVERTEDFIELDS_ is undefined it looks like attributes.QueryName is empty. Are you

Re: Dynamic Query Name in Custom Tag?

2014-05-27 Thread Dan LeGate
var=#variables[ 'ConvertedFields_' attributes.QueryName ]# On Tue, May 27, 2014 at 4:49 PM, Dan LeGated...@legeek.com wrote: 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