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

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 member
  • moveto -change the position of a specified member relative to the current position
  • change -modify the reference to a particular member
  • add -add new members

field (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 or false 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, 2019, Oracle and/or its affiliates. All rights reserved.