Home > Contents > Index > 
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index 
ics:catalogmanager.replacerow
Replaces an existing row in a table by first deleting it, and then inserting the specified information into the row using
ics:catalogmanager.Syntax
<ics:catalogmanager>
<ics:argument name="ftcmd" value="replacerow" /> <ics:argument name="tablename" value="table" />[<ics:argument name="columnname" value="column name"/>] [<ics:argument name="urlcolumnname_folder" value="folder name"/>] [<ics:argument name="columnname_file" value="file name"/>]</ics:catalogmanager>Parameters
ftcmd(required)- Value must be set to
 replacerow.
tablename (required)- Name of the table that contains the row to replace.
 
columnname (optional)- Each column in the row to be replaced.
 Must contain at least one argument with primarykey column being the columnname.columnnameis a table column name.
urlcolumnname_folder (optional)- Subfolder name to store the uploaded file. The file is then stored under the upload folder and the subfolder. The upload folder is specified in the SystemInfo table's
 defdircolumn. You can have multiple upload columns.
- Upload columns are designated by the prefix
 url. The column name in the table must begin withurl(for example,urltext). The argument name must include the table's column name with_folderappended to the column name (for example,urltext_folder).
columnname_file (required for non-binary files)- The name of the file you want to upload. The column name in the table must begin with
 url(for example,urltext). The agrument name must have_fileappended to the table's column name (for example,urltext_file).
Description
The
replacerowcommand replaces an existing row in a table on a remote server by first deleting it, and then inserting the specified information into the row. This command should be used to clear the value of a column in a row.
errno
The possible values of
errnoinclude:
 Value Description -103 No such table. -104 No table definition. -105 Database error.Example
The following example updates name column for id=100 with value from 'Apple' to 'Orange' and quantity from 100 to 150.
id description quantity 100 Apple 100 102 Grape 300 <ics:catalogmanager> <ics:argument name="ftcmd" value="replacerow"/> <ics:argument name="tablename" value="ExampleTable"/> <ics:argument name="id" value="100"/> <ics:argument name="description" value="Orange"/> <ics:argument name="quantity" value="150"/> </ics:catalogmanager>See Also
The following
ics:catalogmanagercommands:ics:catalogmanager.replacerows
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.