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 creates a list of all the assettypes that can be inserted in the named association, TopStories.
<asset:load type='<%=ics.GetVar("AssetType")%>' objectid='<%=ics.GetVar("id")%>' name="theAsset" /> <asset:legalchildtypes name="theAsset" field="Association-named:TopStories" pubid='<%=ics.GetSSVar("pubid")%>' listvarname="childtypeslist" />See Also
asset:load
asset:children
asset:childtypes
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.