Could you show some code?

Paul Kenney
[EMAIL PROTECTED]
916-212-4359 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Ken Dunnington
> Sent: Thursday, May 06, 2004 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: [CFCDev] CFC inside CFC losing THIS scope?
> 
> 
> Okay, this is a weird one :)
> 
> I've got a shopping cart component that populates itself with product 
> objects when an item is added to the cart. If I dump one of these 
> products, I can see all the methods, and all the values I've 
> set up in 
> the CFC's THIS scope (most importantly, my datasource 
> variable, 'ds'.) 
> I can access these variables from my CFM page (item.size, item.name 
> etc) but when I try to call a method on the product object, I get an 
> error "Variable DS is undefined in THIS."
> 
> Is CF looking in the THIS scope of my shopping cart, which 
> does not use 
> the THIS scope? I tried changing the product CFC to use 
> VARIABLES, but 
> got the same error. What scope are the variables in when you put one 
> CFC inside another's local scope? To complicate matters further, the 
> shopping cart is in the session scope.
> 
> Any thoughts?
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to