Home > Contents > Index >
ASSETSET.GETASSETCOUNT
Retrieves a count of assets, given optional sort criteria.
Syntax
<ASSETSET.GETASSETCOUNT NAME="assetset name" [LIST="sort attribute list"] [IMMEDIATEONLY="true|false
"] VARNAME="count variable name"/>Parameters
NAME (required)
- Input parameter. Name of the assetset object.
LIST (optional)
- Input parameter. Name of the list that determines sort order. This list has the following columns:
attributetypename
attributename
- name of attribute, sort by or has one of the following special values:_RATING_
- order by asset rating (Sites-Engage only)_ASSETTYPE_
- order by asset typedirection
- can be eitherascending
ordescending
IMMEDIATEONLY
(optional)- Input parameter. Boolean value indicating whether to consider inherited attribute values or not. A
false
value indicates that inherited values should be considered (the default).
VARNAME (required)
- Input and output parameter. As input, name of the variable that holds the assigned count on output.
Description
When called,
ASSETSET.GETASSETCOUNT
creates the specified variable with the count of table rows that results if ASSETSET.GETASSETLIST were called with similar parameters.NOTE: This tag also causes dependencies to be recorded for all assets that contribute to the returned lists, or if this assetset object is not an enumerated one, then the equivalent of
RENDER.UNKNOWNDEPS
will be performed.Example
<!-- ASSETSET.GETASSETCOUNT: How many Movie assets are there? --> <SEARCHSTATE.CREATE NAME="ss"/> <ASSETSET.SETSEARCHEDASSETS NAME="as" ASSETTYPES="Movie" CONSTRAINT="ss"/> <ASSETSET.GETASSETCOUNT NAME="as" VARNAME="count"/> <CSVAR NAME="Variables.count Movie(s)"/>
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.