I am with Ray on this. To ensure I am only updating fields that
have actually changed I may do something like the following:
<!--- This section determines if it is needed to call the
Update method and only for those fields which have
changed and are listed in #Form.Update_Fields# --->
<cfparam name="Form.Update_Fields" default="">
<cfif Form.Update_Fields neq "">
<cfinvoke component="com.mycompany.user" method="update">
<cfloop list="#Form.Update_Fields#" index="field">
<cfinvokeargument name="#field#" value="#form[field]#">
</cfloop>
</cfinvoke>
</cfif>
"Raymond Camden" <[EMAIL PROTECTED]>@cfczone.org on 03/26/2003 03:39:30
PM
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
cc:
Subject: RE: [CFCDev] Invoking with arguments, maybe
Yes, in fact, I normally only use cfinvokeargument if I'm planning on
making the arguments dynamic as you have.
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia
Email��� : [EMAIL PROTECTED]
Blog���� : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Davis, Eric
Sent: Wednesday, March 26, 2003 2:35 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Invoking with arguments, maybe
I'm setting up a fa�ade component which will invoke another of a few
components, possibly with argument data.
Is it allowed to surround the <cfinvokeargument> tag with <cfif blah>?
As in:
<cfinvoke component="...">
�� <cfif args>
����� <cfinvokeargument name="args" value="#args#">
�� </cfif>
</cfinvoke>
Something seems illegal here to me; I don't want to build it this way if
it is, naturally.
Anybody got any pointers?
Thanks,
ecd.
--
Eric C. Davis
Programmer/Analyst I
Georgia Department of Transportation
Office of I.T. Applications
Web Applications Group
[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).