Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
asset:removemembers
This tag removes member asset references from an asset.
Syntax
<asset:removemembersname="assetName"list="list of members"field="meta attribute name"/>Parameters
name (required)- Input. Name assigned the previously created or loaded asset.
list (required)- Input. The list of member assets to remove. The list must contain the column:
memberid.
field (required)- Input. The asset's attribute name in which to store the member assets. Legal values include
Association-unnamedandAssociation-named.
Description
This tag removes member asset references from an asset. The changes will be written to the database on
asset:save.Error Numbers
The possible values of
errnoinclude:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded into memory). -12007 The list did not have correct columns. -12070 Asset was not fully loaded. Tag requires asset:load with editable flag to fully load asset.Example
This example loads a Page asset and removes the TopStories asset of its named association.
<asset:load name="aPage" objectid='<%=ics.GetVar("id")%>' type="Collection" editable="true"/> <listobject:create name="lo2" columns="memberid"/> <listobject:addrow name="lo2"> <listobject:argument name="memberid" value='<%= ics.GetVar("topstoriesId")%>'/> </listobject:addrow> <listobject:tolist name="lo2" listvarname="removelist2" /> <asset:removemembers name="aPage" field="Association-named:TopStories" list="removelist2"/> <asset:save name="aPage"/>See Also
asset:load
asset:addmembers
asset:cantakeaction
asset:changeref
asset:children
asset:childtypes
asset:reorder
asset:save
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.