I need help creating a validation report button that gets a document from a view, and collects the document according to request type (which is "delete"). After getting the document, it must then be compared to a different view from a different database, after finding a document that matched the "Category", "serial number/ badge number".
I'm new to Lotus scripting, so please help me out. Thanks a lot! Here's my sample code:
Dim Session As NotesSession
Dim db As NotesDatabase
Dim CasToolDB As NotesDatabase
Dim BadgeDB As NotesDatabase
Dim CasCol As NotesViewEntryCollection
Dim BadgeCol As NotesViewEntryCollection
Dim CasView As NotesView
Dim BadgeView As NotesView
Dim CTEntry As NotesViewEntry
Dim BEntry As NotesViewEntry
Dim CasToolDocs As NotesDocument
Dim BadgeDocs As NotesDocument
Set BadgeCol = BadgeView.GetAllEntriesByKey("Category", False)
Set BEntry = BadgeCol.GetFirstEntry
While Not BEntry Is Nothing
Set BadgeDocs = BEntry.Document
Set BadgeDocs = BadgeDocs.GetItemValue("Delete")
Wend
'Set CasCol = CasView.GetAllDocumentsByKey("Category", False)
Thanks for the help in advance!