Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 


CATALOGMANAGER.addrows

Adds multiple rows to a table using the CATLOGMANGER command.

Syntax

Parameters

ftcmd (required)
Value must be set to addrows.

tablename (required)
Table name to add rows.

columnname_folderN (optional)
A 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 defdir column. Note that you can have multiple upload columns.

Upload columns are designated by the prefix url. The column name in the table must begin with url (for example, urltext). The argument name must include the table's column name with _folder appended to the column name (for example, urltext_folder).

columnname_fileN (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 argument name must have _file appended to the table's column name (for example, urltext_file).

columnnameN (required for non-binary files)
The name of the file you want to upload. The columnname is a table column name. The column name in the table must begin with url (for example, urltext). The argument name must include the table's column name with _folder appended to the column name (for example, urltext_folder).

errno

The possible values of errno include:

Value
Description
-103
No such table.
-104
No table definition.
-105
Database error.

Example

The following example uses an HTML form to add two new rows to the table named movies.

The next example modifies a table called CatalogExample. The default upload column is /export/home/temp. The CatalogExample table has the following columns:

The sample form uses a CatalogManager command to add rows to the table when the user clicks the addrow button.The text files are uploaded to the upload folder and specified subfolder on the host machine.

The first records text file, FirstAddrows.txt, is put in the /export/home/temp/CatalogForm directory; the second records text file is put in the /export/home/temp/CatalogForm/Part2 directory.

See Also

addrow
addrowtext

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.