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

 


ics:catalogmanager.deleterow

Deletes a row in a table using ics:catalogmanager.

Syntax

Parameters

ftcmd (required)
Value must be set to deleterow.

tablename (required)
Name of the table containing the row to delete.

Delete uploaded file(s) (optional)
Set to yes if the upload files associated with row should be deleted. Default is no.

primarykey (optional)
primarykey is the column name of the primary key column. The value is the value of row's primary key.

tablekey (optional)
Use the tablekey parameter if you want to delete rows based on a value other than the primary key. The value of tablekey is the column name of the column you use to perform the deletion. For example, if you want to delete a table based on the value in the title column, the tablekey parameter looks as follows:

tablekeyvalue (optional)
Value in the tablekey column of the row you want to delete. For example, if you want to delete a row with a value of Jaws in the title column, the tablekeyvalue parameter looks as follows:

This parameter is required only if the tablekey parameter is used.

Description

The deleterow command deletes a row in a table. There are two options that you can use to delete a row with this command:

Note

This is valid only if the primary key column does not have a variable set.

errno

The possible values of errno include:

Value
Description
-105
Database error.

Example

The following example deletes a row by id = 1 from table ExampleTable


Alternatively, the following example deletes all rows with quantity=1