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

 


ics:catalogmanager.addrows

Adds multiple rows to a table using ics:catalogmanager.

Syntax

Parameters

ftcmd (Required)
Value must be set to addrows.

tablename (Required)
Table name to add rows.

columnnameN_folder (Optional)
The syntax columnname_folderN is deprecated.
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. You can have multiple upload columns. N is the row counter.

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).

columnnameN (Required for non-binary files)
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).

columnnameN_file (required for non-binary files)
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).

Error Numbers

The possible values of errno include:

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

Example

The following example adds two new row 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: • id (the table’s primary key) • urlText • description • quantity

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

The following ics:catalogmanager commands:

ics:catalogmanager.addrow

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.