Given a document in a view, returns the first response to the document.
public Document getChild(Document doc)
throws NotesException
Document doc
Any document in the view. Cannot be null.
Document
The first response document to the parameter you specify. Returns null if there are no responses to the document.
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.
GetChild method in LotusScript NotesView class
See examples