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
Get the mailserver that powers this list at http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4