Home > Contents > Index >
ASSET.LEGALCHILDTYPES
Builds a list of asset types that can be used in an asset field.
Syntax
<ASSET.LEGALCHILDTYPES NAME="asset name" FIELD="field name" PUBID="publication id" LISTVARNAME="list name" />Parameters
NAME (required)
- Name of previously loaded asset.
FIELD (required)
- The field or attribute name.
PUBID (required)
- Specifies the ID of the publication for which to return legal child types.
LISTVARNAME (required)
- The name of a list to create with the legal assettypes. The list will contain one column:
assettype
.Description
The
ASSET.LEGALCHILDTYPES
tag indicates what asset types are legal for a particular asset reference attribute.Error Numbers
The possible values of
errno
include:
Value Description -101 No rows. No Association of that name was found. -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded intomemory).Example
This example lists all the possible assets that are candidates to insert in the named association, TopStories.
<ASSET.LOAD TYPE="Variables.AssetType" OBJECTID="Variables.id" NAME="theAsset" /> <ASSET.LEGALCHILDTYPES NAME="theAsset" FIELD="Association-named:TopStories" PUBID="SessionVariables.pubid" LISTVARNAME="childtypeslist" /> <LOOP LIST="childtypeslist"> <ASSET.LIST TYPE="childtypeslist.assettype" PUBID="SessionVariables.pubid" EXCLUDEVOIDED="true" LIST="candidates"/> <LOOP LIST="candidates"> <ICS.GETVAR NAME="candidates.name"/> </LOOP> </LOOP>See Also
ASSET.LOAD
ASSET.CHILDREN
ASSET.CHILDTYPES
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.