Wednesday, June 18, 2008

Quick reminder - new LS methods in Notes 8

I re-read a slide from LS-08, and (re-)discovered a couple of new (and undocumented) LS methods in Notes 8. The methods should also be available in Java.

NotesDatabase.CreateDocumentCollection -> Empty NotesDocumentCollection

NotesView.CreateViewEntryCollection -> Empty NotesViewEntryCollection

NotesView.GetColumnValues( columnIndex ) -> LS @DbColumn without 64k limit

Test it for yourself (with the debugger running):

Sub Initialize
Dim s As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim col As NotesDocumentCollection
Dim eCol As NotesViewEntryCollection
Dim colValues As Variant

Set db = s.CurrentDatabase
Set view = db.GetView( "someViewInTheDatabase" )

Set col = db.CreateDocumentCollection
Set eCol = view.CreateViewEntryCollection

colValues = view.GetColumnValues( 2 ) 'a valid colIndex
End Sub


1 comments:

Chris said...

God, it took Lotus long enough to add these simple methods. These should have been added years ago. Anyway, thanks for the info!