Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:cantakeaction
This tag checks whether editing actions related to the assets members are allowed.
Syntax
<asset:cantakeaction name="assetName" varname="variable name" actions="list of actions to check" field="meta attribute name" [memberid="new member asset id"] [oldmember="old member asset id"]/>Parameters
name (required)
- Input. Name assigned the previously created or loaded asset.
varname (required)
- Input. The name of a variable into which to put a list of "true", "false" values corresponding to the values in the ACTIONS attribute.
actions (required)
- Input. A comma-separated list of action names to check for. Valid actions are:
remove
-remove a specified membermoveto
-change the position of a specified member relative to the current positionchange
-modify the reference to a particular memberadd
-add new membersfield (required)
- Input. The asset's attribute name in which to store the member assets. Legal values in include
Association-unnamed
,Association-named
or the name of any attribute which accepts multiple assets.memberid (optional)
- Input. The member asset id. Required if the action is change or moveto.
oldmember (optional)
- Input. The old member asset id. Required if the action is moveto.
Description
This tag returns true or false for each action passed in. The results are a comma separated string of
true
orfalse
indicating whether the corresponding action is permitted.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 into memory). -12070 Asset was not fully loaded. Tag requires ASSET.LOAD with editable flag to fully load asset.Example
See Also
asset:load
asset:addmembers
asset:changeref
asset:children
asset:childtypes
asset:removemembers
asset:reorder
asset:save
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.