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

 


CATALOGMANAGER.createtable

Creates a table using the CATALOGMANAGER command.

Syntax

Parameters

ftcmd (required)
Value must be set to createtable.

tablename (required)
Name of the table to create.

systable (required)
Allows differentiation between ContentCatalog (systable=no) and ObjectCatalog (systable=obj). This defaults to ContentCatalog (systable=no).

uploadDir (required)
Server-side folder path to contain uploaded files.

aclList (optional)
Comma-separated list of ACLs. When security is enabled, only members of the ACLs can access content in the table.

colvalueN (required)
Database-specific field type for column.The value of N is 0 (zero) for the first column, 1 for the second column, and so on.

colnameN (required)
Column field name. Each colname parameter corresponds to a column in the table. The value of N is 0 (zero) for the first column, 1 for the second column, and so on.

Description

The createtable command creates a table. The table's primary key field name is defined in the Content Server properties file (futuretense.ini).

Note

The default primary key used by CatalogManager is defined in the property cc.contentkey. Unlike a custom property for primary keys, the cc.contentkey property does not restrict the name of the tables that you create. The Object table column, version, is reserved for future use.

errno

The possible values of errno include:

Value
Description
-22
Table already exists.
-105
Database error.

Example

The following example uses the cc.contentkey property when creating a new table called ExampleTable:

To specify the primary key in the properties file (futuretense.ini file), you must use the following syntax:

The following example shows a custom primary key using cc.TestKey:

The following example creates the table named moviereviews.

See Also

The following CATALOGMANAGER command:

deletetable

  Home > Contents > Index >

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