Try setting the query to the request scope.

ie:
CFQUERY name="Request.test" datasource="#DSN#"


----- Original Message -----
From: "Ruslan Sivak" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 12:40 PM
Subject: Passing Queries to custom tags


> Is there a way to pass a query to a custom tag?
>
> example
>
> <CFQUERY name="test" datasource="#datasource#">
> Select name
> FROM sometable
> </CFQUERY>
>
> <CF_customtag query="test">
>
> and then inside the custom tag i would like to be able to access that
query.
>
> <CFOUTPUT>
> #test.name#
>
> or more appropriately
>
> #evaluate("#attributes.query#.name")#
> </CFOUTPUT>
>
> Ruslan Sivak
> Technologist
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to