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

 

OBJECT.LOAD

Loads an object.

Syntax

Parameters

CLASSNAME (required)
Classname of the object.

NAME (required)
Name of the object.

OBJECTID (optional)
ID of the object.

OBJECTVERSION (optional)
Version of the object.

CHECKOUT (optional)
Checkout information for the object.

NODEID (optional)
Node ID for the object.

FIELD (optional)
Specifies the name of a field argument that can be used to uniquely identify an object. When using this parameter the, value parameter should also be specified to indicate the value of the specified field.

VALUE (optional)
Specifies the value of a field for unique identification. The value parameter must be used in conjunction with the field parameter.

ARG1 (optional)
Argument 1.

ARG2 (optional)
Argument 2.

LIST (optional)
Name of existing list. This parameter allows you to load an object from an existing list rather than from the database.

Description

This tag creates a new instance of the implementing class, loads a specific object into the object instance, and saves the object instance in the object pool using the specified name. The object can be requested by referencing the following information:

The implementing class must implement a load method. The load method should have one of the following prototypes:

errno

The possible values of errno include:

Value
Description
-101
No rows returned.
-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.
-10004
A required parameter is missing.
-10006
The object ID is not valid.
-10007
The version of the object is not valid.
-10008
The node ID of the object is not valid.
-10010
Invalid attribute value.
-10026
No list by specified name exists.

Example

The following example uses the optional LIST parameter.

  Home > Contents > Index >

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