In a view I have created a checkbox action button. The action button shows/hides the checkbox based on the formula I have set:
@If( AAAR = True; @True; @False )
I declared the variable AAAR under the view's declaration section like this:
Dim AAAR As Boolean
Now this flag is set in the OnSelect event so that whenever users clicks/selects a document from the view, this event triggers:
Sub Onselect(Source As Notesuiview)
Dim ws As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uiview As NotesUIView
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set uiview = ws.CurrentView
Set doc = db.GetDocumentByID(uiview.CaretNoteID)
If doc.GetItemValue("AllotmentApprovalReq")(0) = "Yes" Then
AAAR = True
Else
AAAR = False
End If
End Sub
Now the problem is that, i want the checkbox menu should change its status (checkbox / no checkbox) based on this value AAAR. I have to do 'something' in the OnSelect event but i don't know how to access and set the checkbox menu from there. Please help.