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

 

ASSET.GET

Retrieves the value of a single field from a loaded asset object and stores it in a Sites variable.

Syntax

Parameters

NAME (required)
Input. Name assigned to the asset whose field value you want to get. This asset must be loaded and assigned a name before you can pass its name to this tag. (See ASSET.LOAD .)

FIELD (required)
Input. The name of the field whose value you want to retrieve.

OUTPUT (optional)
Input. The name of the output variable to create to store the value of the field. If you do not supply a name for this variable, Sites uses one with the same name as the field.

Description

This tag obtains the value (or contents) from the specified field of a loaded asset and stores it in the specified output variable.

Use this tag to extract the asset information (from an asset object) that you want to display online. If you want to extract information from more than one field, use ASSET.SCATTER .

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 and displays the contents (value) of the description field:

This code retrieves the value of the abstract field, writes it to the variable named abstract, and then displays the contents of the variable:

See Also

ASSET.LOAD
ASSET.SCATTER

  Home > Contents > Index >

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