Items (NotesDocument - JavaScript)

Read-only. All the items in a document. An item is any piece of data stored in a document.

Defined in

NotesDocument

Syntax

getItems() : java.util.Vector

Usage

The vector elements are of type NotesItem.

Examples

This button gets the name and string value of each item in the current document.
try {

var doc:NotesDocument = currentDocument.getDocument();
requestScope.status = "Items in current document:";
var items:java.util.Vector = doc.getItems();
var iterator = items.iterator();
while (iterator.hasNext()) {
	var item:NotesItem = iterator.next();
	var s = item.getValueString().isEmpty() ? "[No text]" : item.getValueString();
	requestScope.status += "\n\n" + item.getName() + "\n" + s;
}

} catch(e) {
	requestScope.status += "\n" + e.toString();
}