我在計算顯示文本字段時出現錯誤。 對於每個文檔,我在編輯模式下打開它並重新保存以糾正它。 我在許多數據庫和文檔上都有同樣的問題。 我試圖使用uiworkspace中的EditDocument函數在整個基礎上使用代理更正它。如下:使用預定代理刷新蓮花文檔
Option Public
Option Declare
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim col As NotesDocumentCollection
Dim view As NotesView
Dim doccand As NotesDocument
Dim doc As NotesDocument
Dim result As Integer
Dim uiwks As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set db = session.Currentdatabase
Set col = db.Unprocesseddocuments
Set docCand = col.getfirstdocument
On Error Resume next
While Not docCand Is Nothing
Set uidoc = uiwks.Editdocument(True, docCand)
Call uidoc.save
Call uidoc.close(True)
Set docCand = view.getNextdocument(docCand)
Wend
End Sub
此功能只有從我的Notes客戶端啓動它時才解決問題。它不能用作多米諾服務器中的計劃任務。我嘗試使用沒有uiworkspace的computewithform,它也不起作用。 任何人都有一種方法來刷新,並在預定代理中編輯和保存文檔?
如果它是計算顯示的,它不會被保存,每次有人打開文檔進行讀取時都會重新計算。如果你已經修正了這個公式,沒有人會看到這個錯誤,我真的沒有看到提醒。 –
這是計算的顯示字段,它保存在最後一次保存文檔。 我必須切換到編輯模式才能看到更正。 – user3082877
計算字段與計算顯示字段之間的差異是爲顯示字段計算的值不會保存到文檔,並且只有在打開文檔進行顯示時纔會計算。 –