RE: How to tell what template called a function?

2006-08-29 Thread Ben Nadel
I haven't done too much with this, but you could potentially use the ServiceFactory to figure out which was the last template called. You would have to call the code within your function, then query it to figure out which was last... Not sure how they are ordered off hand. !--- Create ColdFusion

Re: How to tell what template called a function?

2006-08-29 Thread Per Djurner
Thanks, it only works when debugging is enabled though. Is there not a way to get this kind of info with debugging off? On 8/29/06, Ben Nadel [EMAIL PROTECTED] wrote: I haven't done too much with this, but you could potentially use the ServiceFactory to figure out which was the last template

RE: How to tell what template called a function?

2006-08-29 Thread Ben Nadel
] Sent: Tuesday, August 29, 2006 5:50 PM To: CF-Talk Subject: Re: How to tell what template called a function? Thanks, it only works when debugging is enabled though. Is there not a way to get this kind of info with debugging off? On 8/29/06, Ben Nadel [EMAIL PROTECTED] wrote: I haven't done too

Re: How to tell what template called a function?

2006-08-29 Thread Michael Dinowitz
I was asked that question a few weeks back by a friend and the answer was to take the debug template that sits in the cfusionmx/wwwroot/web-inf/debug and play with it some. There is an undocumented factory call there that gives access to all the page info. It is possible to rewrite the whole

Re: How to tell what template called a function?

2006-08-29 Thread Per Djurner
Michael, is the code that Ben posted the undocumented factory call you are referring to? Ie, this code: cfset objFactory = CreateObject( java, coldfusion.server.ServiceFactory) cfset objDebugging = objFactory.GetDebuggingService() That code will only work when debugging is enabled unfortunately.