Home > Contents > Index >
asset:childtypes
Builds a list of asset types that are children of this asset.
Syntax
<asset.childtypes name="asset name"[type="
parent assettype
"]
[objectid="
parent assetid
"]
list="list name" />Parameters
name (required unless type and assetid supplied)
- Name of previously loaded asset.
type (required if name is not used)
- Input. Asset type of the parent asset whose children you want to list. Either
type+objectid
or name must be supplied to identify the parent asset.
objectid (required if name is not used)
- Input. Asset id of the parent asset whose children you want to list. Either
type+objectid
or name must be supplied to identify the parent asset.
list (required)
- Name of asset type list. The list includes the asset type in the otype field.
Description
The
asset:childtype
tag helps to improve performance. For example, you can loop through the asset types and use an asset:loadall tag for each asset type to load all the children.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 intomemory).Example
This code lists the names of the associated asset children grouped by asset type.
<asset:childtypes name="anAsset" list="childassettypes"/> <ics:listloop listname="childassettypes"> <ics:listget listname="childassettypes" fieldname="otype" output="assettype" /> <asset:children name="anAsset" objecttype='<%=ics.GetVar("assettype")%>' list="childrenList"/> <ics:listloop listname="childrenList"> <ics:listget listname="childrenList" fieldname="name"/><br/> </ics:listloop> </ics:listloop>This code does the same without loading any assets.
<asset:childtypes type="Article" objectid='<%=ics.GetVar("cid:)%>' list="childassettypes"/> <ics:listloop listname="childassettypes"> <ics:listget listname="childassettypes" fieldname="otype" output="assettype" /> <asset:children type="Article" objectid='<%=ics.GetVar("cid:)%> objecttype='<%=ics.GetVar("assettype")%>' list="childrenList"/> <ics:listloop listname="childrenList"> <ics:listget listname="childrenList" fieldname="name"/><br/> </ics:listloop> </ics:listloop>See Also
asset:children
asset:load
ics:listloop
ics:listget
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.