JAVA/CORBA CLASSES


getPrevDocument method
Example

Gets the document immediately preceding the current document or a specified document in a collection.

Defined in

DocumentCollection

Syntax

public Document getPrevDocument()
   throws NotesException

public Document getPrevDocument(Document doc)
   throws NotesException

Parameters

Document doc


Return value

Document


Usage

In remote (IIOP) operations, getPrevDocument(Document doc) invalidates the cache and is therefore discouraged.

The preferred loop structure is getLastDocument() followed by getPrevDocument() until it returns null. For performance reasons, you should avoid using getNthDocument(int n) and getPrevDocument(Document doc) in a loop.

Language cross-reference

GetPrevDocument method in LotusScript NotesDocumentCollection class

NavigatePrevSelected @command in formula language

NavPrevSelected @command in formula language

Example
See Also