MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Use Manual page 56

Table of Contents

Advertisement

and City = <cfqueryparam value="#localCity#"
cfsqltype="CF_SQL_VARCHAR" />
and State = <cfqueryparam value="#localState#"
cfsqltype="CF_SQL_VARCHAR" />
and Zip = <cfqueryparam value="#localZip#"
cfsqltype="CF_SQL_VARCHAR" />
and phone = <cfqueryparam value="#localphone#"
cfsqltype="CF_SQL_VARCHAR" />
order by contactId desc
</cfquery>
</cftransaction>
<cfscript>
arguments.Contacts.setcontactId(qGetID.contactId);
</cfscript>
</cffunction>
<cffunction name="update" output="false" access="public"
returntype="void">
<cfargument name="Contacts" required="true"
type="samples.contact.Contact">
<cfset var qUpdate="">
<cfquery name="qUpdate" datasource="contacts">
update Contacts
set FirstName = <cfqueryparam
value="#arguments.Contacts.getFirstName()#"
cfsqltype="CF_SQL_VARCHAR" />,
LastName = <cfqueryparam
value="#arguments.Contacts.getLastName()#"
cfsqltype="CF_SQL_VARCHAR" />,
Address = <cfqueryparam value="#arguments.Contacts.getAddress()#"
cfsqltype="CF_SQL_VARCHAR" />,
City = <cfqueryparam value="#arguments.Contacts.getCity()#"
cfsqltype="CF_SQL_VARCHAR" />,
State = <cfqueryparam value="#arguments.Contacts.getState()#"
cfsqltype="CF_SQL_VARCHAR" />,
Zip = <cfqueryparam value="#arguments.Contacts.getZip()#"
cfsqltype="CF_SQL_VARCHAR" />,
phone = <cfqueryparam value="#arguments.Contacts.getphone()#"
cfsqltype="CF_SQL_VARCHAR" />
where contactId = <cfqueryparam
value="#arguments.Contacts.getcontactId()#"
cfsqltype="CF_SQL_INTEGER">
</cfquery>
</cffunction>
56
Using the Flex Data Service Assembler

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents