There is an error in the example code that comes with the CFStudio help
file for CFTRANSACTION. I get this error: Context validation error in tag
CFTRY The tag is not correctly positioned relative to other tags in the
template: the last tag nested inside tag CFTRY must be a CFCATCH tag.
Currently it is a CFTRANSACTION tag. The error occurred while processing an
element with a general identifier of (CFTRY), occupying document position
(27:1) to (27:7). How would i fix the code so it works right?
CFTRANSACTION Example
CFTRANSACTION can be used to group multiple queries using CFQUERY into a
single business event. Changes to data requested by these queries can be
committed on the basis of the success or failure of the query by using the
actions COMMIT and ROLLBACK, respectively.
The following is a sample listing (see code in right pane): INSERT
INTO Courses (Number, Descript) VALUES ('#myNumber#',
'#myDescription#') INSERT INTO CourseList (CorNumber, CorDesc,
Dept_ID, CorName, CorLevel, LastUpdate) VALUES ('#myNumber#',
'#myDescription#', '#myDepartment#', '#myDescription#', '#myCorLevel#',
#Now()#)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists