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

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. columnname is a table column name.
Must contain at least one argument with primarykey column being the columnname.

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

Description

The replacerow command 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.

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 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:catalogmanager commands:

ics:catalogmanager.updaterow

ics:catalogmanager.updaterow2

ics:catalogmanager.replacerows

   Home > Contents > Index >

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