Home > Contents > Index >
CATALOGMANAGER.lock
Locks a record for the current user in a tracked tableusing the
CATALOGMANAGER
command.Syntax
<CATALOGMANAGER> <ARGUMENT NAME="ftcmd" VALUE="lock" /> <ARGUMENT NAME="tablename" VALUE="table" /> <ARGUMENT NAME="asset" VALUE="primarykey"/> </CATALOGMANAGER>Parameters
ftcmd (required)
- Value must be set to
lock
.
tablename (required)
- Name of the tracked table.
asset (required)
- Value of the primary key for the row to lock.
Description
The
lock
command locks a record for the current user in a tracked table. Once a row is locked, the current user can modify fields in the row. The current user must have write access to the table.Error Numbers
The possible values of
errno
include:
Value Description -103 No such table. -104 No table definition. -105 Database error.Example
This example locks the record whose primary key value is
95137
inmovies
.<SETVAR NAME="errno" VALUE="0"/> <CATALOGMANAGER> <ARGUMENT NAME="ftcmd" VALUE="lock"/> <ARGUMENT NAME="tablename" VALUE="movies" /> <ARGUMENT NAME="asset" VALUE="95137" /> </CATALOGMANAGER> <IF COND="IsError.Variables.errno=true"> <THEN> <!--Handle error--> </THEN> </IF>See Also
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.