If myquery is the query on your page then in your custom tag
<cfset _localQuery = Caller.myquery />
Better is to pass the query in the tag
<cf_mytag query="myquery" />
and in the tag
<cfset _localQuery = Evaluate("Caller." + Attributes.query) />
WG
-----Original Message-----
From: Venable, John [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 17:45
To: CF-Talk
Subject: Caller access to query
Is there a way to access an existing query recordset from a custom tag
called on the page? So if I have a query in a page, and I call a custom tag,
can i use the query data through come sort of caller scope object? I can't
seem to make it work.
Thanks
John Venable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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