Home > Contents > Index >
ASSET.CHANGEREF
This tag changes the a member reference to reference a different asset
Syntax
<ASSET.CHANGEREF
NAME="
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 replace and the replacemnet assets. The list must contain the columns:
memberid
,newmemberid
, andnewmembertype
.
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 asset references.
Description
This tag changes one or more member asset references to refer to new assets.
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). -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
Change the first unnamed Association member of a Collection asset to an Article named "Monthly Report".
<ASSET.LOAD NAME="aCollection" OBJECTID="Variables.id" TYPE="Collection" EDITABLE="true"/> <ASSET.CHILDREN NAME="aCollection" LIST="allChildren" NCODE="-" ORDER="ncode desc,nrank asc"/> <ASSET.LIST LIST="anArticle" TYPE="Article" FIELD1="name" VALUE1="Monthly Report" LIMIT="1"/> <LISTOBJECT.CREATE NAME="lo" COLUMNS="memberid,newmembertype,newmemberid"/> <LISTOBJECT.ADDROW NAME="lo" memberid="allChildren.oid" newmembertype="Article" newmemberid="anArticle.id"/> <LISTOBJECT.TOLIST NAME="lo" LISTVARNAME="changelist" /> <ASSET.CHANGEREF NAME="aCollection" FIELD="Association-unnamed" LIST="changelist"/> <ASSET.SAVE NAME="aCollection"/>See Also
ASSET.LOAD
ASSET.ADDCHILD
ASSET.ADDMEMBERS
ASSET.CANTAKEACTION
ASSET.CHILDREN
ASSET.CHILDTYPES
ASSET.REMOVEMEMBERS
ASSET.REORDER
ASSET.SAVE
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.