getItemValueCustomData (Document - Java)

Returns as an object the value of an item containing custom data.

Note: This method is new with Release 6.

Defined in

Document

Syntax

public Object getItemValueCustomData(String itemname)
    throws ClassNotFoundException
    throws NotesException
    throws java.io.IOException
public Object getItemValueCustomData(String itemname, String datatypename)
    throws ClassNotFoundException
    throws NotesException
    throws java.io.IOException

Parameters

String itemname

The name of the item.

String datatypename

The name of the data type. If specified, this name must match the data type name specified when the item was written. If omitted, no name checking occurs.

Return value

Object

An object that receives the value of the item. Must have the same class definition as the object written to the item.

Usage

An item that contains custom data is of type Item.USERDATA (14).

For other methods that get custom data, see:

To write custom data to an item, see:

Example