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

 


COMMIT

Creates a new revision of a record from a tracked table.

Syntax

Parameters

TABLE (required)
Name of the table

ASSET (required)
Value of the primary key for the record being committed.

KEEPLOCKED (optional)
Indicates lock status of record after commit. Set value to true to indicate the record is still locked by user after the commit.

ANNOTATION (optional)
Comment describing the new revision.

Description

The commit command creates a new revision of a record from a tracked table. The current user must have the record locked and have write access to the tracked table to perform this operation.

errno

The possible value of errno include:

Value
Description
-1000
Command failure. Check the errdetail variable for the specific error.

Example

The following example assumes all COMMIT parameters are exposed on an HTML form. It first checks whether the parameters exist, clears the value of errno, then commits the record.

See Also

DELETEREVISION
HISTORY
LOCK
RELEASE
RETRIEVEREVISION
ROLLBACK
SETVERSIONS
TRACKTABLE
UNLOCKRECORD
UNTRACKTABLE

  Home > Contents > Index >

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