Is it possible to dynamically determine if the code being
processed is in the middle of a CFTransaction?
Sure,
CFIF ListFind(getBaseTagList(), CFTRANSACTION)
I am in a transaction
CFELSE
I am not in a transaction
/CFIF
Well, there you go. I'd never even thought of that
I'm sure I've seen this topic before, but can't seem to find anything in the
archives, or through a google search...
Is it possible to dynamically determine if the code being processed is in
the middle of a CFTransaction?
For instance:
cftransaction action=begin
cfquery/
cfif
Is it possible to dynamically determine if the code being
processed is in the middle of a CFTransaction?
For instance:
cftransaction action=begin
cfquery/
cfif InTransaction
Show Message
/cfif
/cftransaction
I make a call to a custom Error Handler tag
Sure,
CFIF ListFind(getBaseTagList(), CFTRANSACTION)
I am in a transaction
CFELSE
I am not in a transaction
/CFIF
I use it like this on my action templates (eg inserting something into
a database
CFIF NOT ListFind(getBaseTagList(), CFTRANSACTION)
CFTRANSACTION
4 matches
Mail list logo