If you plan to reuse the query results across multiple request of a page, you will need to put the CFC in a persistent scope (like session). Otherwise, the results of the query will be new for each request. If you make calls to the query object in one CFC call, the variables scope will work fine.
Regards, Matt Knight | w:972.361.9943 | m:214.213.4016 -----Original Message----- From: Dave Cordes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: [CFCDev] Query Reuse in Multiple CFCs I'm running into a problem reusing the same query in multiple CFCs. I don't know how to do it! If I run say a getCart() method which returns a query that I need to reuse in several other methods like setOrderSubtotal() and setOrderTaxes() would I have to call the getCart() method several times within each method or can I reuse the first one that I ran? Is there a better way? I'm guessing there is. Thanks, Dave Cordes Macromedia Certified Professional 636-265-0094 (Office) 636-578-4235 (Mobile) ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word '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 word '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]
