Dim parentDoc As NotesDocument Dim responseDoc As NotesDocument Set parentDoc = view.GetFirstDocument ' Visit each main document in the view While Not ( parentDoc Is Nothing ) Set responseDoc = view.GetChild( parentDoc ) ' Visit each of the parent's response documents While Not ( responseDoc Is Nothing ) responseDoc.ExpireDate = Cdat(askme) Call responseDoc.Save(True, False) Set responseDoc = view.GetNextSibling( responseDoc ) Wend ' Put the new total onto the parent document doc.ExpireDate = Cdat(askme) Call parentDoc.Save( True, False ) Set parentDoc = view.GetNextSibling( parentDoc ) Wend
Set parentDoc = view.GetNextSibling( parentDoc )
If the specified view is different from the current view, the GetNextSibling method returns the following error: "Document not found in <view>." That is, you can only navigate using the Document parameters that are from the same view in which you are navigating.
Set doc = view.GetFirstDocument If Not doc Is Nothing Then '%REM Dim parentDoc As NotesDocument Dim responsecoll As NotesDocumentcollection Set parentDoc = view.GetFirstDocument ' Visit each main document in the view While Not ( parentDoc Is Nothing ) Set responsecoll = parentDoc.Responses If Not responsecoll.Count = 0 Then Call responsecoll.StampAll("ExpireDate",Cdat(askme)) End If doc.ExpireDate = Cdat(askme) Call parentDoc.Save( True, False ) Set parentDoc = view.GetNextDocument(parentDoc) Wend
Set parentDoc = view.GetNextDocument(parentDoc)
SELECT (Form = "Ticket") & (status = "geschlossen" | status = "verworfen" & @Adjust(closedatum;4;0;0;0;0;0) < @Date(2008;1;31) & ExpireDate = "") & (!@IsResponseDoc)
Dim parentDoc As NotesDocumentDim responsecoll As NotesDocumentcollection