.

HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1 212-599-2048

Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development

Facebook Twitter YouTube
Chat now       
.
ProductsDownloadsNewsAbout usContact


Need a Domino Consultant? Call NotesMail +1 212-599-2048 - HCLSoftware Business Partner

LOTUSSCRIPT/COM/OLE CLASSES


Examples: GetPrevEntry method
This script retrieves the second entry in the Student Category in the By Category view and places it in the Honors folder.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entryOne As NotesViewEntry
Dim entryTwo As NotesViewEntry
Dim vc As Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.getView("By Category")
view.AutoUpdate = False
Set vc = view.GetAllEntriesByKey("Student")
Set entryOne = vc.GetNthEntry(3)
Set entryTwo = vc.GetPrevEntry(entryOne)
Set doc = entryTwo.Document
Call doc.PutInFolder("Honors")

See Also