getParentDocument (View - Java™)
Given a response document in a view, returns its parent document.
Defined in
Syntax
public Document getParentDocument(Document doc)
throws NotesException
Parameters
Document doc
Any document in the view. Cannot be null.
Return value
Document
The parent of the parameter(the document to which the parameter is a response). If you have filtered the view using FTSearch, getParentDocument returns the previous document in the view, regardless of level. Returns null for a main document.
Usage
The document returned by getParentDocument may be a main document, a response, or a response-to-response.