Hi
Is it possible to get the number of views in the database using Lotusscript
Not the documents
Thanks in advance
Shobana J
Hi
Is it possible to get the number of views in the database using Lotusscript
Not the documents
Thanks in advance
Shobana J
Subject: Count the no.of views in a database
Use NotesDatabase.Views property.
From Lotus Help file -
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim views As Variant
Set db = session.CurrentDatabase
views = db.Views
Forall v In views
Messagebox( v.Name )
End Forall
End Sub
–Phani
Subject: RE: Count the no.of views in a database
that will give you folders and views. Try this:
Dim ns As New NotesSession
Dim db As NotesDatabase
folder% = 0
view% = 0
Set db = ns.CurrentDatabase
Forall v In db.Views
If v.isfolder Then
folder% = folder% + 1
Else
view% = view% + 1
End If
End Forall
Msgbox "There are " & Cstr(folder%) & " folders and " & Cstr(view%) & " views in this database"
Subject: RE: Count the no.of views in a database
Hi
Thanks a lot.It worked
Thanks & regards
Shobana J