Domino Code Fragment

Code Name*
Accessing Notes View Properties
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.138.110.119
Description*
You can access Notes view properties using the NotesView class properties.
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Example The following example is fetching the view’s properties:
Dim session As Object
Dim db As Object
Dim view As Object
Set session = CreateObject("notes.notessession")
Set db = session.getdatabase("", "test.nsf")
Set view = db.GetView("By Author")
Print (view.Name)

Following is an explanation of the code.
We declare a session, db and view which reference the NotesView object.
Dim session As Object
Dim db As Object
Dim view As Object
We get the reference to NotesView using the GetView method of NotesDatabase.
Set view = db.GetView("By Author")
We print out the Name of the view.
Print (view.Name)