Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:catalogbatch
Allows
ics:catalogmanager
calls to be used in groups.Syntax
<ics:catalogbatch/>Description
This tag combines commands so that they act as a group. All
catalogmanager
tags withincatalogbatch
are committed to the database only if all the commands complete successfully. Only the ics:catalogmanager.addrow and ics:catalogmanager.addrowscatalogmanager
commands are supported within theics:catalogbatch
tag.errno
The value of
errno
is unchanged.Example
In the following example the data is added to the
StoreHours
table and theMyFood
table only if there are no errors inserting into either table. Any error causes the transaction to rollback.<ics:catalogbatch> <ics:catalogmanager> <ics:argument name="ftcmd" value="addrows"/> <ics:argument name="tablename" value='MyFood'/> <ics:argument name="id0" value="0"/> <ics:argument name="fruit0" value="kiwi"/> <ics:argument name="vegetable0" value="asparagus"/> <ics:argument name="bread0" value="rye"/> <ics:argument name="meat0" value="chicken breast"/> <ics:argument name="id1" value="1"/> <ics:argument name="fruit1" value="banana"/> <ics:argument name="vegetable1" value="peas"/> <ics:argument name="bread1" value="sourdough"/> <ics:argument name="meat1" value="filet mignon"/> </ics:catalogmanager> <ics:catalogmanager> <ics:argument name="ftcmd" value="addrow"/> <ics:argument name="tablename" value="StoreHours"/> <ics:argument name="id" value="332"/> <ics:argument name="description" value="Open 24 hours"/> </ics:catalogmanager> </ics:catalogbatch>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.