getItemValue (NotesXspDocument - JavaScript)

Gets the value of an item as a vector.

Syntax

getItemValue(name:string) : java.util.Vector
Parameter Description
name The name of the item.
Return value Description
java.util.Vector A vector of item values. Data types depend on the data type of the item.

Usage

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

If the item does not exist, this method returns an empty vector.

This method returns all values of the item.

Examples

This data binding for a multiline edit box returns the values of the Numbers item in the document associated with the current XPage.
var v = document1.getItemValue("Numbers");
if (v.isEmpty()) {
	return "Numbers is empty or doesn't exist";
} else {
	var result = "";
	var vi = v.iterator();
	while (vi.hasNext()) {
		result = result + vi.next().toFixed() + "\n";
	}
	return result;
}