Mark E Robinson 14.Mar.12 07:53 AM a Web browser Domino Designer6.5.6Windows XP
I didn't create this Script, I "borrowed" it from another post, but can any of you LS gurus explain why it might not be working? I'm simply trying to refresh all of the documents in a particular view (All Audits Status) each night. If there's a better, more reliable method than this, please share.
From what I've read, the problem may lie with the ComputeWithForm language due to some of the computed fields within the form. So, I've made each of the computed fields editable, with their formulas tucked away in Input Translation -but still they will not compute!
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView ("All Audits Status")
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
Call doc.ComputeWithForm (False, False)
Call doc.Save (True, False)