Re: Recursing with custom tags

2001-04-02 Thread Roger B .

On Thu, 29 Mar 2001 13:50:17 -0500, "Reed Powell"
[EMAIL PROTECTED] wrote:

Somewhere in the back of my mind I remember hearing or reading about the
ability, without using session or client variables, to have a custom tag
that is in the middle of recursion access the variable space of the initial
caller.

Reed,

Try using the Request scope instead of Caller.

--
Roger

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Recursing with custom tags

2001-04-02 Thread Hayes, David

You need to take a look at GetBaseTagData and GetBaseTagList.

GetBaseTagData(tagname [, instancenumber ] )
 Returns an object that contains data (variables, scopes, etc.) from a
specified ancestor tag. By default the closest ancestor is returned. If
there is no ancestor by the specified name, or if the ancestor does not
expose any data (for example, CFIF), an exception will be thrown.


You can use GetBaseTagList (and ListValueCount) to find out how many
instances of the desired tag have been invoked.


-Original Message-
From: Reed Powell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 12:50 PM
To: CF-Talk
Subject: Recursing with custom tags


Somewhere in the back of my mind I remember hearing or reading about the
ability, without using session or client variables, to have a custom tag
that is in the middle of recursion access the variable space of the initial
caller.  Since each instance of the call to the custom tag creates it's own
space, using CALLER. doesn't work.  What I want to do is to continually add
to a set of results, on the initial calling page, of information that is
collecting at each level of the recursion.  I tried having each instance
write it's set of findings to a CALLER. variable, thinking that as the
recursion unwound those writes would gradually cascade upward towards the
original caller, but that didn't seem to work out the way I thought it
would.  I beat that code to death so badly, trying to get it to work, that
it's not in any condition to post here, but hopefully the idea of what I'm
after came across.

thanks,
-reed


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Recursing with custom tags

2001-03-29 Thread Reed Powell

Somewhere in the back of my mind I remember hearing or reading about the
ability, without using session or client variables, to have a custom tag
that is in the middle of recursion access the variable space of the initial
caller.  Since each instance of the call to the custom tag creates it's own
space, using CALLER. doesn't work.  What I want to do is to continually add
to a set of results, on the initial calling page, of information that is
collecting at each level of the recursion.  I tried having each instance
write it's set of findings to a CALLER. variable, thinking that as the
recursion unwound those writes would gradually cascade upward towards the
original caller, but that didn't seem to work out the way I thought it
would.  I beat that code to death so badly, trying to get it to work, that
it's not in any condition to post here, but hopefully the idea of what I'm
after came across.

thanks,
-reed


Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists