Home > Contents > Index >
ASSETSET.GETATTRIBUTEVALUECOUNT
Gets the count of distinct attribute values for a specific attribute associated with the products represented by an assetset.
Syntax
<ASSETSET.GETATTRIBUTEVALUECOUNT NAME="assetset name" ATTRIBUTE="attribute name" VARNAME="variable name" [TYPENAME="attribute asset type name"] [IMMEDIATEONLY="true|false
"]/>Parameters
NAME (required)
- Input parameter. Name of the assetset object.
ATTRIBUTE (required)
- Input parameter. Name of an attribute whose values are to be looked up.
TYPENAME (optional)
- Input parameter. Asset type name of the attribute. The default is set in the
gator.ini
file:mwb.defaultattributes=PAttributes
.
IMMEDIATEONLY (optional)
- Input parameter. Boolean value indicating whether to include inherited attribute values or not. A
false
value indicates that inherited values should be included (the default).
VARNAME (required)
- Input and output parameter. As input, name of the variable that holds the count of the unique values requested on output.
Description
This tag generates one or more database queries, in order to count the number of distinct values of the attribute specified. Values inherited from parent assets may also be counted by this tag.
NOTE: This tag also causes dependencies to be recorded for all assets that contribute to the returned count, or if this assetset object is not an enumerated one, then the equivalent of
RENDER.UNKNOWNDEPS
will be performed.Example
<ASSETSET.GETATTRIBUTEVALUECOUNT NAME="promotion" ATTRIBUTE="headline" VARNAME="count"/> <CSVAR NAME= "Found Variables.count asset(s)"/>
Home > Contents > Index > Oracle XML Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.