Share Pastebin
Guest
Public paste!

AMD

By: a guest | May 7th, 2009 | Syntax: ColdFusion | Size: 0.44 KB | Hits: 84 | Expires: Never
Copy text to clipboard
  1. <cfset myaction = "Upsert" >
  2. <cfset mystruct = form>
  3.  
  4. <cfif action eq "Client_Market_deleted">
  5.         <cfset myaction = "delete">
  6.         <cfset mystruct = url>
  7. </cfif>
  8.  
  9.         <cflock name="fred" type="exclusive" timeout="100">
  10.                 <cfset ralph = application.databaseservice.runmethod(myaction,"Client_Markets", mystruct, "Client_Market_ID")>
  11.         </cflock>
  12.  
  13. <cflocation  addtoken="No" url="#Script_Name#?Status=#Action#&Section=#Section#&Action=List_Client_Markets">