取消视图aaaa的“刷新/替换设计时不允许修改“
Dim session As New NotesSession
Set db = session.CurrentDatabase
Set view = db.getview("aaaa")
viewunid$ = view.UniversalID
Set viewdoc = db.GetDocumentByUNID( viewunid$ )
If Not viewdoc Is Nothing Then
Set item = viewdoc.GetFirstItem( "$Flags" )
If Not item Is Nothing Then
pos = Instr(item.Text,"P")
If pos <> 0 Then 'we need to unprotect theLotus folders that were previously protected
tmpString$ = Left$(item.Text, pos-1) & Right$(item.Text, Len(item.Text)-pos)
Call viewdoc.ReplaceItemValue("$Flags", tmpString$) 'set flags without "P"
Call viewdoc.Save(True, True, True)
End If
End If
End If