lotusscriptlotuslotus-formula

LotusScript - Is it possible to create check mark near document in view?


Is there any way to generate check mark near selected document by using LotusScript or @-formulas in the view:

enter image description here

I have already tried this:

Dim session As New NotesSession
    Set db = session.CurrentDatabase
    Set docByUi = uiDoc.Document
    Set uiView = ws.CurrentView
    If docByUi.selectedCreatorsIDs(0) <> "" Then
        Forall docID In docByUi.selectedCreatorsIDs
            Call uiView.SelectDocument(db.Getdocumentbyunid(docID))
        End Forall
        'Call ws .ViewRefresh
    End If

It's working and I am selecting all docs I want, but the check mark in the left panel isn't shown.

Is there a way to do this?

Thank you.


Solution

  • You can create an formula agent of type "Select documents in view" and add a SELECT formula that returns true for documents you want to be selected in view with a check mark.