Title: Knowing the CFC path from within the CFC
Not ideal, but you could create a UDF that looped through the mappings and compared against the cfc's absolute path and then calculated the dot path.
 
Sam
 
 

---------------------------------------------
B-Line Charting Components 2.0 now available
http://www.blinex.com/products/charting/
---------------------------------------------

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Suyer, Ed [PRD Non-J&J]
Sent: Wednesday, June 18, 2003 1:46 PM
To: '[EMAIL PROTECTED]'
Subject: [CFCDev] Knowing the CFC path from within the CFC


Is there a variable I can access from within the cfc that contains the dot notation path of the cfc?

in other words, if I call- >

<cfobject name="foo" component="com.jnj.foo">
<cfinvoke component="#foo#" method="getPath" returnvariable="attributes.cfcpath">

what goes in here ->

<cfcomponent>
        <cffunction access="public" name="getPath">

                <cfreturn ??> <!-- i want to return "com.jnj".  "com.jnj.foo" works too. --->
        </cffunction>
</cfcomponent>


Any thoughts?

Reply via email to