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

 

dimensionset:filtersingleasset

This tag filters the input asset using the filter attached to the specified dimension set.

Syntax

<dimensionset:filtersingleasset
     name="name of the loaded dimension set"
     assettype="asset type of asset to filter"
     assetid="asset id of asset to filter"
     list="name of IList to contain the filtered results"
     >
    <dimensionset:asset ... />
</dimensionset:filtersingleasset>

Attributes

name (required)
name of the loaded dimension set
assettype (required)
asset type of asset to filter
assetid (required)
asset id of asset to filter
list (required)
name of IList to contain the filtered results

Parameters

dimensionset:asset (required)
This tag specifies the preferred dimension(s) to be set into the filter prior to its invocation.

Description

This tag filters the input asset using the filter attached to the specified dimension set. The preferred dimensions used for the filter are those listed in the body content of this tag. The resultant list is registered in the ICS list pool. The output list has two columns - assettype and assetid.

errno

The possible values of errno include:

Value
Description

Example

This sample loads a dimension set by name, then filters the asset c:cid. The asset that is returned from the filter is then reset into c:cid. This allows a quick translation lookup using the filtering strategy of the specified dimension set. This sample is taken from FirstSiteII.

<asset:load name="DimSet" type="DimensionSet" field="name" value='GlobalDimSet'/>
<dimensionset:filtersingleasset name="DimSet" assettype='<%=ics.GetVar("c")%>' assetid='<%=ics.GetVar("cid")%>' list="outList">
    <dimensionset:asset assettype="Dimension" assetid='<%=ics.GetVar("locale")%>'/>
</dimensionset:filtersingleasset>
<ics:removevar name="c"/>
<ics:removevar name="cid"/>
<ics:listloop listname="outList" maxrows="1">
    <ics:listget listname="outList" fieldname="assettype" output="c"/>
    <ics:listget listname="outList" fieldname="assetid" output="cid"/>
</ics:listloop>

See Also

dimensionset:asset

dimensionset:filter

asset:load

  Home > Contents > Index >

FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.