This is possible. However, you have an error with your <cftransaction>
tags. They ALWAYS require an end tag.

  <cfif IsOK>
    <cftransaction action=""
  <cfelse>
    <cftransaction action = ""
  </cfif>  

> -----Original Message-----
> From: Spectrum Web [mailto:[EMAIL PROTECTED]
> Sent: zondag 1 februari 2004 11:06
> To: CF-Talk
> Subject: Re:cftransaction HELP Please...
>
> Thanks James
>
> it's possible to insert pieces of scripts inside cftransaction blocks?
>
> Like this:
>
>
> <cfset IsOK = True>
> <cftransaction action=""> >   <cftry>
>     <cfquery to read from A>
>     <cfcatch>
>       <cfset IsOK = False>
>     </cfcatch>
>   </cftry>
>
> <CFMAIL ...>
>
>   <cfif IsOK>
>     <cftry>
>       <cfquery to save in B>
>       <cfcatch>
>         <cfset IsOK = False>
>       </cfcatch>      <
>     </cftry>
>
>
> <CFMAIL ....>
>
>     <cfif IsOK>
>       <cftry>
>         <cfquery to delete from A>
>         <cfcatch>
>           <cfset IsOK = False>
>         </cfcatch>      <
>       </cftry>
>     </cfif>
>   </cfif>
>
>
> <CFMAIL...>
>
>   <cfif IsOK>
>     <cftransaction action=""
>   <cfelse>
>     <cftransaction action = ""
>   </cfif>
> </cftransaction>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to