Try something LIKE this inside of your custom tag:

<cfset theQuery = "caller.#attributes.queryname#">

<cfoutput query="theQuery">
        blah blah
</cfoutput>


Thanks,

André


-----Original Message-----
From: John Stanley [mailto:[EMAIL PROTECTED] 
Sent: 11 March 2003 14:29
To: CF-Talk
Subject: Custom Tag Question

I am creating a custom tag that will display the results of a query. I
know
there are already some out there, but I wanna do it myself.

I have an attribute called queryname that i refer to in the call of the
custom tag.

<cf_mytag queryname="get_users">

inside the custom tag i refer to it as attributes.queryname as in the
following

<cfoutput query="#attributes.queryname#">
        blah blah 
</cfoutput>

I keep getting the following error.

Attribute validation error for tag cfoutput.  
The value of the attribute query, which is currently "get_users", is
invalid.  
  
The error occurred in C:\CFusionMX\CustomTags\tabledata.cfm: line 20
 
18 :            <th></th>&nbsp;</th>
19 :      </tr>
20 :    <cfoutput query="#attributes.queryname#">
 

I have called the custom tag after the query. Does the custom tag still
execute first? The custom tag appears before the query in debugging.

If so what is a competent work around for this problem.?
 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to