Does this work for your purpose:
<cfcomponent>
<cffunction name="getAccounts">
<cfquery name="test">
SELECT * FROM BLAH
</cfquery>
<cfreturn test>
</cffunction>
</cfcomponent>
<cfinvoke component="myquery" returnvariable="session.myquery">
At 03:12 PM 03/08/02 -0700, you wrote:
>It will return a reference to the data in the session scope. I have to
>ask though, why are you mixing your data this way? IMHO, it seems like
>your CFC should only do one of two things, return the query or assign
>the query to a session variable. It shouldn't assign the query to a
>session variable and return it.
>
>Matt Liotta
>President & CEO
>Montara Software, Inc.
>http://www.montarasoftware.com/
>V: 415-577-8070
>F: 415-341-8906
>P: [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: Stacy Young [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, August 03, 2002 2:59 PM
> > To: CF-Talk
> > Subject: cfreturn session.records ?
> >
> >
> >
> > If I have a CFC that stores its results in session scope is the data
> > duplicated on the return or is the session data just referenced via
> > pointer
> > of sorts?
> >
> >
> >
> > <cfcomponent>
> >
> >
> >
> > <cffunction name="getAccounts">
> >
> > <cfquery name="session.test">
> >
> > SELECT * FROM BLAH
> >
> > </cfquery>
> >
> >
> >
> > <cfreturn session.test>
> >
> > </cffunction>
> >
> >
> >
> > </cfcomponent>
> >
> >
> >
> > On the page...
> >
> >
> >
> > <cfinvoke
> >
> > component="accounts"
> >
> > method="getAccounts"
> >
> > returnvariable="aQuery" />
> >
> >
> >
> > <cfloop query="aQuery">
> >
> > ..
> >
> > </cfloop>
> >
> >
> >
> >
> >
> > Thanks, Stace
> >
> >
> >
> > AVIS IMPORTANT:
> > -------------------------------
> > Les informations contenues dans le present document et ses pieces
>jointes
> > sont strictement confidentielles et reservees a l'usage de la (des)
> > personne(s) a qui il est adresse. Si vous n'etes pas le destinataire,
> > soyez avise que toute divulgation, distribution, copie, ou autre
> > utilisation de ces informations est strictement prohibee. Si vous
>avez
> > recu ce document par erreur, veuillez s'il vous plait communiquer
> > immediatement avec l'expediteur et detruire ce document sans en faire
>de
> > copie sous quelque forme.
> >
> > WARNING:
> > -------------------------------
> > The information contained in this document and attachments is
>confidential
> > and intended only for the person(s) named above. If you are not the
> > intended recipient you are hereby notified that any disclosure,
>copying,
> > distribution, or any other use of the information is strictly
>prohibited.
> > If you have received this document by mistake, please notify the
>sender
> > immediately and destroy this document and attachments without making
>any
> > copy of any kind.
> >
> >
> >
>
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists