Home > Contents > Index >
asset:undocheckout
Retracts the checkout of an object.
Syntax
<asset:undocheckout
name="loaded asset" [revert="true|false
"] [flush="true|false
"]/>Parameters
name
(required)- Input. Name of the loaded asset. (See
asset:load
.)
revert (optional)
- Specifies that the asset should revert back to its last committed state. The default value
true
causes the object to revert back to its last committed state. Specifying the valuefalse
removes the checkout lock with out reverting the object back to the last committed state.
flush (optional)
- Flushes the asset from the object pool. A
true
value indicates the object should be flushed. The default value isfalse
.
Description
This tag is used for retracting a checkout of an asset.
Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded intomemory). -10011 Database table is not revision tracked. -10012 Object is not checked out -10018 Unable to undo check out specified objectExample
This checks out an asset for edit and then retracts the checkout.
<asset:checkout type="Page" objectid='<%=ics.GetVar("assetid")%>' /> <ics:if condition='<%=ics.GetVar("errno").equals("0")%>'> <ics:then> <asset:load name="assetToEdit" type="Page" objectid='<%=ics.GetVar("assetid")%>' option="editable" /> <asset:undocheckout name="assetToEdit"/> </ics:then> </ics:if>See Also
asset:checkin
asset:checkout
asset:load
asset:track
asset:rollback
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.