In general, you should always have the CFC just return the data. Let the
caller worry about placing the data in the request scope. 

<cfset request.data = mycfc.mymethod()>

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

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

> -----Original Message-----
> From: Tangorre, Michael [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, July 15, 2002 11:02 AM
> To: CF-Talk
> Subject: CFC and Scope
> 
> 
> What is the best practice for the following situation.
> 
> I have a CFC in which I run a few queries and build a 
> "UserInfo" structure... This CFC is invoked as soon as the 
> user is authenticated into the application.
> 
> I need this structure and all its' keys available in the 
> request scope. Is it best to scope it in the CFC, or scope 
> the return variable into the return scope inside the cfinvoke tag?
> 
> I assume the issue of pointing to the variable and actually 
> copying it come into play here...
> 
> TIA,
> 
> Michael Tangorre
> 
> MillenniuM Information Systems
> 1101 Wilson Blvd, Suite 1200
> Arlington, Virginia 22209
> (703) 341-1438
> 
> ================================
> This email contains MillenniuM Information 
> Systems, LLC. privileged information. 
> ================================ 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to