Home > Contents > Index >
UNLOCKRECORD
Unlocks a locked row.
Syntax
<UNLOCKRECORD TABLE="TABLE_NAME" ASSET="PRIMARY_KEY"/>Parameters
TABLE (required)- Name of the tracked table.
ASSET (required)- Value of the primary key for the row to unlock.
Description
The
UNLOCKRECORDtag unlocks a locked row. Only the user who has the row locked or a user who hasrtadminprivileges against the table may unlock the row.UNLOCKRECORDdoes not restore the row to its most recent revision.Error Numbers
The possible values of
errnoinclude:
Value Description -1000 Command failure. Check theerrdetailvariable for the specific error.Example
This example assumes all
UNLOCKRECORDparameters are exposed on an HTML form. It first checks whether the parameters exist, clears any values fromerrno, and then unlocks the row.
<!-- Make sure required parameters exist --> <IF COND="IsVariable.tablename=false"> <THEN> <SETVARNAME="tablename" VALUE=""/> </THEN> </IF> <IFCOND="IsVariable.asset=false"> <THEN> <SETVARNAME="asset" VALUE=""/> </THEN> </IF> <!-- clear out errno --> <SETVARNAME="errno" VALUE="0"/> <!-- do the unlock --> <UNLOCKRECORD TABLE="Variables.tablename" ASSET="Variables.asset"/> <!-- See if unlock succeeded --> <IFCOND="Variables.errno=0"> <THEN> <!-- if succeeded, brag about it --> Unlock succeeded for <CSVARNAME="Variables.asset"/> <BR/> </THEN> <ELSE> <!-- otherwise, call an error reporting element --> Unlock failed.<BR/> </ELSE> </IF>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.