LDD Today


[Back to "LotusScript: Programming views in Notes/Domino 6"]

LotusScript:Programming views in Notes/Domino 6 sidebar
The following is a code example for creating a new view.

Declarations
Dim db As NotesDatabase
Dim Templateview As NotesView
Dim UsersView As NotesView
Dim col1 As NotesViewColumn
Dim col2 As NotesViewColumn
Dim J As Integer
Dim K As Integer
Dim L As Integer
Dim allcols () As String
Dim checkviewname () As String

Sub Initialize CHOOSENAME: 'Check for existing view name
Redim Preserve checkviewname(Ubound(db.Views))
For L = 0 To Ubound(db.Views) Next
Do Loop While ws.Prompt(PROMPT_YESNO,"Additional columns?","Do you want to add another column to the view?") End Sub