JAVA/CORBA CLASSES


getPrevSibling method
Example

Given a document in a view, returns the document immediately preceding it at the same level. If you use this method on a main document, the preceding main document in the view is returned. If you use it on a response document, the preceding response document with the same parent is returned.

If the view is categorized, the previous sibling is in the same category as the original document.

Defined in

View

Syntax

public Document getPrevSibling(Document doc)
   throws NotesException

Parameters

Document doc


Return value

Document


Usage

You can use getPrevSibling to move from one main document to the next, skipping any response documents in between.

If you filtered the view using FTSearch, getPrevSibling returns the previous document in the view, regardless of level.

Siblings

Two documents are siblings if:


The first sibling

This method returns null when the parameter is:


Language cross-reference

GetPrevSibling method in LotusScript NotesView class

Example
See Also