getChild (View - Java)

Given a document in a view, returns the first response to the document.

Defined in

View

Syntax

public Document getChild(Document doc)
    throws NotesException

Parameters

Document doc

Any document in the view. Cannot be null.

Return value

Document

The first response document to the parameter you specify. Returns null if there are no responses to the document.

Usage

To find additional response documents, use getNextSibling. The combination of getChild and getNextSibling allows you to access document responses, sorted in the same order that they appear in a view. To get all the immediate responses for a document unsorted, use getResponses in Document.

If you've filtered the view with the FTSearch method, getChild returns the next document in the view, regardless of level.

Example