Yes, I've got a
normal public access method inside my cfc that recurses upon itself- it accepts
a query object (so that I only have to hit the database once per call) and if
that query object isn't passed, it creates it, and passes it when it
recurses.
<cffunction
...>
<cfargument
type="query" name="data"...>
<cfif
isdefined("arguments.data") and not
isquery(arguments.data)>
<cfset temp =
structDelete(arguments, "data", "false")>
</cfif>
<cfif not
isdefined("arguments.data")>
<cfquery
name="arguments.data">...</cfquery>
</cfif>
<cfdosomestuff>
<cfset recurse
= thismethod(data="">
</cffunction>
kind of like that,
only sort of not ;)
that is to say,
that's the idea behind the code, but of course not my actual
code.
HTH
--
Eric C. Davis
Programmer/Analyst I
Georgia Department of Transportation
Office of I.T. Applications
404.463.2860.158
[EMAIL PROTECTED]
Eric C. Davis
Programmer/Analyst I
Georgia Department of Transportation
Office of I.T. Applications
404.463.2860.158
[EMAIL PROTECTED]
-----Original Message-----
From: Howard Fore [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] Request scope across CFCs
On Monday, March 24, 2003, at 01:50 PM, Davis, Eric wrote:
Changed my method to accept an incoming query or create it if it didn't exist, and i'm six kinds of down with that.
Eric, could you elaborate on that please? Do you mean a method inside the CFC?
--
Howard Fore, [EMAIL PROTECTED]
"She's like a wrecking ball no longer connected to the chain." Solomn Burke
