getItemValue (Java)

Returns the value of an item.

Defined in

Document

Syntax

public java.util.Vector getItemValue(String name)
    throws NotesException

Parameters

String name

The name of an item.

Return value

java.util.Vector

The value or values contained in the item. The data type of the value depends on the data type of the item.

Notes® item type

Value return type

Rich text

java.util.Vector with one String element rendered into plain text

Text (includes Names, Authors, and Readers item types) or text list

java.util.Vector with String elements

Number or number list

java.util.Vector with Double elements

Date-time or range of date-time values

java.util.Vector with DateTime elements

Each element corresponds to a value in the item. If the item contains a single value, the vector has just one element.

Usage

If multiple items have the same name, this method returns the value of the first item.

If the item has no value, this method returns an empty vector.

If no item with the specified name exists, this method returns an empty vector. It does not throw an exception. Use hasItem to verify the existence of an item.

This property returns the same value(s) for an item as getValues in Item.

Example