我有软删除启用数据库,我将这些删除的文档存储到名为'DeletedDocuments'的视图中 我对该视图有一个操作,以永久删除软删除文档... i对行动指出,当视图不含有任何文件如何刷新隐藏当视图上的公式
以下动作要隐藏HideWhen公式是动作条均线的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])... 我该怎么去呢?
我还没有测试过这个,但是如何:调用notesUIWorkspace.ReloadWindow() – 2012-02-07 18:09:58
请参阅我的答案 - 是否检查属性? – 2012-02-08 15:51:30