isValid (NotesXspViewEntry - JavaScript)

Indicates whether a view entry is a valid entry and not a deletion stub.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

isValid() : boolean
Legal value Description
boolean true if the entry is valid; false otherwise

Usage

If a document is removed after a view entry collection containing it is created, you can use the corresponding view entry for navigation but cannot access the document. If the possibility of removal exists, you should check isValid before attempting to access the document.

Examples

This value script for a Computed Field is embedded in a Data Table control with a Domino® view data source whose collection name is rowdata. The script displays text if a view entry is for a deletion stub.
try {
	if (!rowdata.isValid()) {
		return "DELETION STUB!"
	}
} catch (e) {
	return e.toString()
}