getFirstDocument (View - Java)

Returns the first document in a view.

Defined in

View

Syntax

public Document getFirstDocument()
    throws NotesException

Return value

Document

The first document in the view. Returns null if there are no documents in the view.

Usage

If the view is filtered by FTSearch, this method returns the first document in the filtered view.

The ViewNavigator and ViewEntryCollection classes provide more efficient methods for navigating views and accessing entries.

Example