I posted this at like noon today and I don't know what happend to it. Just
wrap
#Evaluate(attributes.query)# around it.

Bryan

----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 4:36 PM
Subject: RE: Custom Tag


> > > > When in a custom tag how can you reference the query that is
> > > > located in the callers page...
> > > >
> > > > EX:
> > > > <cfquery name="xxx" datasource="qry_y">
> > > > select a,b,c
> > > > from y
> > > > </cfquery>
> > > >
> > > > <cf_MyTag query="xxx">
> > > > -----------------------------------
> > > > MyTag.cfm
> > > >
> > > > How can I look at all of the items in the query 'xxx'?
> > >
> > > You're going to kick yourself as to how simple this is;
> > > caller.xxx
> >
> > I tried Caller.xxx and it didn't find it I will have to test
> > it again... Maybe I had some other problem... because I thought
> > it would be that simple as well.
>
> To reference the query name within your custom tag, given that the name is
> contained within an attribute passed to the custom tag, you'll need to
> perform some sort of string evaluation.
>
> <cfoutput query="Caller.#Attributes.Query#">
> ....
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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