
Project: VIC CRM for Notes (Managed by Dave Leigh)
Subject
Cleanup journal's private views...
Posted by
Rob Breault on 11/20/2004 at 03:53 PM
Details
I've added the following code to the Journal DB's Database QueryClose event to clean up the private views during development and testing:
Sub Queryclose(Source As Notesuidatabase, Continue As Variant)
Dim views As Variant
Dim view As NotesView
Dim doc As NotesDocument
Dim item As NotesItem
Print "Checking for private views..."
views = this_db.Views
Forall v In views
Set view = v
Set doc = this_db.GetDocumentByUNID(view.UniversalID)
If Not doc Is Nothing Then
Set item = doc.GetFirstItem("$Flags")
If Instr(item.Values(0),"V") Then
Print "Removing private view: " & view.Name
Call view.Remove
End If
End If
End Forall
Print ""
End Sub
Modification history
| Entered 20-Nov-2004 15:53 by Rob Breault. Last Modified <none> by <none>. |
Feedback
Check out other projects
Anonymous