If the value is in the this scope, or in the global, unnamed scope, the
'lower' CFC can access it. However, you probably want to use a method in
the parent cfc, like getFoo(), to get the data.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 27, 2003 8:37 PM
> To: CF-Talk
> Subject: accessing parent cfc's variables
> 
> 
> If I have a cfc that is nested in another cfc, is there a way 
> to access the parent object's variables?
> 
> I have something like this.
> 
> <cfif NOT isDefined("session.user.order")>
>         <cfset order = createObject("component", "cfc\order")>
>         <cfset session.user.order = order>
> </cfif>
> 
> I have a method in the order object that needs to access a 
> variable in the this scope of the user object.
> 
> 

                                

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to