I think the sytax to pass a query to a custom tag is like this:
<cfquery name="getContracts" datasource="dsn">
Select
whatever
</cfquery>
<cf_contracts query="getContracts">
However, how do you then access this recordset in the custom tag?
I tried:
<cfoutput query="#attributes.query#> and
<cfouput query="getContracts">
but both of these drew an error, saying the query was not available.
Thanks,
Peter
<cfquery name="getContracts" datasource="dsn">
Select
whatever
</cfquery>
<cf_contracts query="getContracts">
However, how do you then access this recordset in the custom tag?
I tried:
<cfoutput query="#attributes.query#> and
<cfouput query="getContracts">
but both of these drew an error, saying the query was not available.
Thanks,
Peter