Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

asset:getdimensions

Get an IList of the dimensions assigned to a particular asset.

Syntax

<asset:getdimensions
        list="name of output list"
       [name="name of asset whose dimensions will be returned"]
       [type="type of asset whose dimensions will be returned"]
       [objectid="asset id of asset whose dimensions will be returned"]/>

Attributes

list (required)
The name of the IList in the ICS object pool that will contain the dimensions. The IList has 3 columns: TYPE, OBJECTID, NAME, corresponding to the dimension asset type (usually "Dimension"), the asset id, and the asset name.
name (required if type and objectid not used)
The name of the loaded asset whose dimension data will be returned.
type (required if name not used)
The asset type of the asset whose dimension data will be returned. The asset does not need to be loaded.
objectid (required if name not used)
The asset id of the asset whose dimension data will be returned. The asset does not need to be loaded.

Description

Get an IList of the dimensions. Tag requires that either name or type and objectid parameters are set. If none of the parameters are set, tag will throw an exception.

The IList has 3 columns: TYPE, OBJECTID, NAME, corresponding to the dimension asset type (usually "Dimension"), the asset id, and the asset name.

Example

The following demonstrates how it is possible to loop through the dimensions belonging to an asset.

<asset:load name='a5' type='<%=ics.GetVar("mda:c8")%>' objectid='<%=ics.GetVar("mda:cid8")%>'/>
<asset:getdimensions name="a5" list="dimlist2"/>
<ics:listloop listname="dimlist2">
	<ics:listget listname="dimlist2" fieldname="OBJECTID" output="dimlist2.objid"/>
	<ics:listget listname="dimlist2" fieldname="NAME" output="dimlist2.name"/>
</ics:listloop>

See Also

asset:setdimensions

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.