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

 

ASSET.SEARCH

Locates a list of asset primary table rows based on the asset type and a set of search criteria.

Syntax

Parameters

TYPE (required)
Asset type of assets for which to search.

SUBTYPE (optional)
Asset subtype. For flex assets, this must be specified if asset attributes are part of the search criteria.

PREFIX (required)
Prefix for variable names used to specify search criteria .

FIELDLIST (optional)
A comma-separated list of field names that may have search criteria specified. If this argument is not specified, then all local fields are considered. The following key words represent groups of attributes: "LocalFields" - fields of the asset's primary table "Publist" - publication ids.

EXCLUDE (optional)
When set to true, it specifies to scatter all fields except those specified by the FIELDLIST parameter.

WHAT (optional)
Comma separated list of fields from the asset's primary table to return. '*' indicates return all fields.

LIMIT (optional)
Maximum number of assets to return.

ORDER (optional)
An Order-By string to add to the end of the query. You can only use fields in the asset type's primary table for the order-by string.

LIST (required)
Name of resulting list.

Description

The search criteria are gathered from Content Server variables. For attributes of simple types, the variable search criteria is gathered from the following:

If there is no prefix:attribute:Total variable:

errno

The possible values of errno include:

Value
Description
-105
Database error.
-10001
The implementing class is invalid.
-10002
There is a missing method for the implementing class.
-10003
The method could not be invoked successfully.
-10001
The implementing class is invalid.
-12006
There is no such asset type.
-12064
Invalid asset search criteria.

Example

This example shows a search for non-voided Articles in a certain publication with a name containing World or General.

This example shows a search for flex asset Products with definition, PTypeFund, where the symbol attribute is either 'PMDEX' or 'PMDIX', regardless of case. The id and name columns will be returned in the list.

  Home > Contents > Index >

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