<cf_mytag queryname="#get_users#"> Looks like you need to put # around the variable that you are passing to the tag otherwise the tag will see it as a text string.
----- Original Message ----- From: "John Stanley" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, March 11, 2003 7:28 AM 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> </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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4