Hi,
I have a view and I want to save each of the documents in the view in order to update the fields using an agent and the following code:
Sub Initialize
' instantiate the notessession object
Dim s As New NotesSession
' declare object variables
Dim db As NotesDatabase
Dim v As NotesView
Dim doc As NotesDocument
' instantiate objects
Set db = s.CurrentDatabase
Set v = db.GetView("V_ENG")
Set doc = v.GetFirstDocument
Do Until doc Is Nothing
' save the doc
Call doc.Save( False, False )
Set doc = v.GetNextDocument(doc)
Loop
' refresh the view
Call v.Refresh
End Sub
I am really stuck on this so any help or advise would be greatly appreciated.
Kind regards,
Kenneth
I have a view and I want to save each of the documents in the view in order to update the fields using an agent and the following code:
Sub Initialize
' instantiate the notessession object
Dim s As New NotesSession
' declare object variables
Dim db As NotesDatabase
Dim v As NotesView
Dim doc As NotesDocument
' instantiate objects
Set db = s.CurrentDatabase
Set v = db.GetView("V_ENG")
Set doc = v.GetFirstDocument
Do Until doc Is Nothing
' save the doc
Call doc.Save( False, False )
Set doc = v.GetNextDocument(doc)
Loop
' refresh the view
Call v.Refresh
End Sub
I am really stuck on this so any help or advise would be greatly appreciated.
Kind regards,
Kenneth