Skip to main content

Using LotusScript in Lotus Notes®/Lotus Domino®, how can you get a handle to selected documents in an embedded view? How can you set a form or view so that documents can be selected?

    Dim s As New notessession
    Dim db As notesdatabase
    Dim col As notesdocumentcollection
    Dim doc As notesdocument
    Set db=s.CurrentDatabase
    Set col=db.UnprocessedDocuments
      Print "Collection size: " & col.count
    Set doc=col.getfirstdocument
    While Not doc Is Nothing
      'Perform desired operations
      Set doc=col.GetNextDocument(doc)
    Wend

Comments