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

 

asset:scatter

Retrieves and makes variables of ("scatters") the values from all the fields of a loaded asset object. (To obtain just one field value, use asset:get.)

Syntax

Parameters

name (required)
Input. Name assigned to the asset whose fields you want to make variables of (scatter). This asset must be loaded and assigned a name before you can pass its name to this tag. (See asset:load .)

prefix (optional)
Input. Optional but rarely omitted. Specifies a string to be included in the name of the variables that store the asset's information. When you specify a prefix, you then create your variables by using a colon to separate the prefix from the field name. For example, if you specify prefix="article", your variables are article:fieldname.

fieldlist (optional)
Input. A comma separated list of fields to scatter (or not to scatter if excude field is set to true). If omitted, and exclude is not true, the fields of the primary asset table will be scatterd. If omitted, and exclude is set to true, all fields of the asset will be scattered.

The following key words can be used to represent groups of attributes:

exclude (optional)
Input. If set to true, specifies that all but those fields specified in the fieldlist argument should be scattered. By default, exclude is false.

Description

This tag retrieves values from the fields of a previously loaded asset and then writes them into memory (session information) as variables. The variables are constructed with the prefix that you supply with the prefix parameter. After you use this tag, you can display the information contained in the asset's fields.

Use this tag rather than multiple asset:get commands when you want to retrieve more than a couple of fields.

Error Numbers

The possible values of errno include:

Value
Description
-10004
A required parameter is missing.
-10005
The requested object is not in the object pool (is not loaded into memory).

Example

This code retrieves values from a loaded asset named Article1, writes variables for those values into memory, and then displays the data in the asset's description and abstract fields:

See Also

asset:load
asset:get

   Home > Contents > Index >

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