GetParentDocument (NotesView - LotusScript®)

Given a response document in a view, returns its parent document.

Defined in

NotesView

Syntax

Set notesDocument = notesView .GetParentDocument( document )

Parameters

document

A NotesDocument. Any document in the view. If you specify Nothing, this method generates an error.

Return value

notesDocument

A NotesDocument. The parent of the specified document. If you have filtered the view using FTSearch, GetParentDocument simply returns the previous document in the view. Returns Nothing if the specified documentis not a response document.

Usage

The document returned by GetParentDocument may be a main document, a response, or a response-to-response.

To find a document's parent outside a view, get its ParentDocumentUNID and use the NotesDatabase method GetDocumentByUNID.

Example