argumentsCollection, or look at CreateObject. On 6/8/07, Chad Gray <[EMAIL PROTECTED]> wrote: > > I have a function in a CFC that does an update on a database table. > > <cffunction name="updateTable" access="public"> > <cfargument name="id" type="numeric" required="yes"> > <cfargument name="Feild1" type="string" required="no"> > <cfargument name="Field2" type="string" required="no"> > > <cfquery datasource="#variables.dataSource#"> > UPDATE table SET > Field1='#arguments.Field1#', > Field2='#arguments.Field2#' > WHERE id = #arguments.id# > </cfquery> > </cffunction> > > > I can use <cfinvoke> with cfinvokearguments tags for each field, but that > is a lot of typing. > > What is best way to send the arguments to the function with the least > amount of typing? > > I suppose is my real question is how do you use cfscript to send the data? > > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280385 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4