I have the following code..
cfinvoke component=FHCcfc.Queries method=CheckPassword
returnvariable=Check/cfinvoke
in the cfc, I have..
cffunction name=CheckPassword returntype=query
cfstoredproc procedure=CheckPassword
dataSource=FoodHandlerCard
On Mon, Jul 7, 2008 at 9:57 AM, Phillip Vector
[EMAIL PROTECTED] wrote:
I have the following code..
cfinvoke component=FHCcfc.Queries method=CheckPassword
returnvariable=Check/cfinvoke
in the cfc, I have..
cffunction name=CheckPassword returntype=query
cfstoredproc
Doesn't the cfprocresult name=Check in the cfstoredproc handle the
returning of the information? Can I safely get rid of that then?
On Mon, Jul 7, 2008 at 10:02 AM, Charlie Griefer
[EMAIL PROTECTED] wrote:
On Mon, Jul 7, 2008 at 9:57 AM, Phillip Vector
[EMAIL PROTECTED] wrote:
I have the
to be specified by the
cfreturn tag.
~Brad
-Original Message-
From: Phillip Vector [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2008 12:10 PM
To: CF-Talk
Subject: Re: The value returned from the CheckPassword function is not
of type query.
Doesn't the cfprocresult name=Check
the CheckPassword function is not
of type query.
Doesn't the cfprocresult name=Check in the cfstoredproc handle the
returning of the information? Can I safely get rid of that then?
~|
Adobe® ColdFusion® 8 software 8 is the most
Well.. Wait...
cfinvoke component=FHCcfc.Queries method=CreateUser
returnvariable=CreateUser/cfinvoke
cffunction name=CreateUser returntype=query
cfstoredproc procedure=CreateUser
dataSource=FoodHandlerCard
cfprocparam type=IN
to the
calling code, than remove the returntype=query-- Simple as that.
~Brad
-Original Message-
From: Phillip Vector [mailto:[EMAIL PROTECTED]
Sent: Monday, July 07, 2008 2:23 PM
To: CF-Talk
Subject: Re: The value returned from the CheckPassword function is not
of type query.
Well.. Wait
if i'm understanding what you're asking... a cffunction doesn't have
to return a value. just set the returntype=void and omit a
cfreturn / value.
however, sometimes on things like inserts/updates, it's advisable to
return a boolean based on whether or not the insert/update succeeded
(using
*slaps his hand to his head*
Thanks.
On Mon, Jul 7, 2008 at 12:34 PM, Charlie Griefer
[EMAIL PROTECTED] wrote:
if i'm understanding what you're asking... a cffunction doesn't have
to return a value. just set the returntype=void and omit a
cfreturn / value.
however, sometimes on things like
9 matches
Mail list logo