XWeb: InsertFacadeObject ColdFusion Sample

ColdFusion code sample for InsertFacadeObject.

Sample Code

<!--- 
//////////////////////////////////////////////////////////////
// //
// author = Derek T. Versteegen //
// organization = American Academy of Pediatrics //
// date added = 10/10/2008 //
// date last modified = 10/18/2007 - DTV //
// //
// notes = code examples of consuming netFORUM baseline //
// xweb methods by way of ColdFusion Components //
// //
// dependancies = netforum_xweb.cfc //
// //
//////////////////////////////////////////////////////////////
--->
 
<!--- xWeb:InsertFacadeObject --->
<cfsavecontent variable="indXML">
<cfoutput>
<ns:IndividualObjects>
<ns:IndividualObject>
<ns:ind_first_name>xxxxxx</ns:ind_first_name>
<ns:ind_last_name>xxxxxx</ns:ind_last_name>
<ns:ind_dob>xx/xx/xxxx</ns:ind_dob>
<ns:ind_gender>xxxx</ns:ind_gender>
<ns:ind_designation>xx</ns:ind_designation>
<ns:adr_line1>xxxxxx</ns:adr_line1>
<ns:adr_line2>xxxxxx</ns:adr_line2>
<ns:adr_line3>xxxxxx</ns:adr_line3>
<ns:adr_city>xxxxxx</ns:adr_city>
<ns:adr_state>xx</ns:adr_state>
<ns:adr_post_code>xxxxxx</ns:adr_post_code>
<ns:adr_country>xxxxxx</ns:adr_country>
<ns:phn_number>xxxxxx</ns:phn_number>
<ns:eml_address>xxxxxx</ns:eml_address>
<ns:ind_add_date>#now()#</ns:ind_add_date>
<ns:ind_add_user>xWeb</ns:ind_add_user>
</ns:IndividualObject>
</ns:IndividualObjects>
</cfoutput>
</cfsavecontent>
 
<cfinvoke component="/xxxxxx/netforum_xweb" method="xweb_InsertFacadeObject" returnvariable="qryXML">
<cfinvokeargument name="nfws_token" value="#session.nfws_token#" omit="no">
<cfinvokeargument name="szObjectName" value="Individual" omit="no">
<cfinvokeargument name="oNode" value="#indXML#" omit="no">
</cfinvoke>
<cfdump var="#qryXML#" label="qryXML">