Home > Contents > Index > 
CATALOGMANAGER.commit
Commits a record from a tracked table into the RevisionTracking subsystem using the
CATALOGMANAGERcommand.Syntax
<CATALOGMANAGER>
<ARGUMENT NAME="ftcmd" VALUE="commit" /> <ARGUMENT NAME="tablename" VALUE="table" /> <ARGUMENT NAME="asset" VALUE="primarykey"/> [<ARGUMENT NAME="checkout" VALUE="true or false"]/> [<ARGUMENT NAME="annotation" VALUE="comment"]/></CATALOGMANAGER>Parameters
ftcmd (required)- Value must be set to
 commit.
tablename (required)- Name of the table.
 
asset (required)- Value of the primary key for the row to commit.
 
checkout (optional)- Indicates lock status of record after commit. Set value to
 trueto indicate the record are still locked by user after the commit.
annotation (optional)- Comment describing the new revision.
 
Description
The
commitcommand commits a record from a tracked table into the RevisionTracking subsystem. The current user must have the record locked and have write access to the tracked table to perform this operation.errno
The possible values of
errnoinclude:
 Value Description -103 No such table. -104 No table definition. -105 Database error.Example
This example commits the locked record whose primary key value is
95137.<SETVAR NAME="errno" VALUE="0"/> <CATALOGMANAGER> <ARGUMENT NAME="ftcmd" VALUE="commit"/> <ARGUMENT NAME="tablename" VALUE="movies" /> <ARGUMENT NAME="asset" VALUE="95137" /> <ARGUMENT NAME="annotation" VALUE="fix typo"/> </CATALOGMANAGER> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
The following
CATALOGMANAGERcommands:
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.