Coldfusion functions in cfc not accepting single arguments with object type
In order to get this to work
I have to put in this line of code <cfargument name="fake" required="true" />
otherwise I get an error:
GeneralDataServerSideService service
Unable to invoke CFC - The ITEM parameter to the updatetbRiskRegister function is required but was not passed in.
<cffunction name="updateUser" output="false" access="remote" returntype="void" >
<cfargument name="fake" required="true" />
<cfargument name="item" required="true" />
<cfquery name="updateItem" datasource="RiskAndCorrectiveActionTracking">
UPDATE [RiskAndCorrectiveActionTracking].[dbo].[tbUsers]
SET [SAMAccountName] = <CFQUERYPARAM cfsqltype="cf_sql_char" VALUE="#item.SAMAccountName#">
,[name] = <CFQUERYPARAM cfsqltype="cf_sql_char" VALUE="#item.name#">
,[email] = <CFQUERYPARAM cfsqltype="cf_sql_char" VALUE="#item.email#">
,[canEditUsers] = <CFQUERYPARAM cfsqltype="cf_sql_bit" VALUE="#item.canEditUsers#">
WHERE id = <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="#item.id#">
</cfquery>
</cffunction>
