我启用了软删除数据库,并将这些已删除的文档存储到名为“DeletedDocuments”的视图中 我对此视图有一个操作,永久删除软删除的文档... 我有一个关于动作的HideWhen公式,声明当视图不包含任何文档时动作应该隐藏
以下是动作栏的ma lotusscript
Function deleteSelectedDocuments As Boolean deleteSelectedDocuments=False Call setObjectVars() Dim documentCollection As NotesDocumentCollection Dim userChoice As Integer On Error Goto errHandler Set documentCollection=gDB.UnprocessedDocuments If documentCollection.Count=0 Then Msgbox "You have not selected any documents. Please choose some to delete em",,"No documents selected" Else userChoice=Msgbox ("Do you want to delete " & Cstr(documentCollection.Count) & " document(s)?",64+100, _ "Please confirm...") If userChoice=6 Then Call documentCollection.RemoveAll(True) Call gWk.ReloadWindow() Call gWk.ViewRefresh End If End If deleteSelectedDocuments=True Exit Function errHandler: Print "Error ***" & Error & " occured on line ***" & Cstr(Erl) & "*** with error number ***" & Cstr(Err) & "*** while attempting to delete selected documents" Msgbox "Error ***" & Error & " occured on line ***" & Cstr(Erl) & "*** with error number ***" & Cstr(Err) & "*** while attempting to delete selected documents" Exit Function End Function
我希望在删除文档后刷新我的视图并想要刷新HideWhen公式... 我有像uiDoc.RefreshHideFormulas这样的东西 但uiDoc在这里不起作用...... 也不能在'eveluate'中使用@Command([RefreshHideFormulas])... 我该怎么办呢?
答案 0 :(得分:1)
答案 1 :(得分:0)
在DeletedDocuments视图上检查“评估每个文档更改的操作”视图属性。如果未选中,则“视图”操作的“隐藏时间”仅评估视图何时打开。