Lotus crashes with a NSD prompt when using .SelectionFormula property in a ‘Shared, desktop private on first use’ view.
It works well on a ‘Shared’ view but all computer inherit of the new selectionFormula. It is right because we modify the view.
The following code is placed on an action of the view.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim view As NotesView
Dim pc,formule As String
Set uiview = workspace.CurrentView
Set view = uiview.View
pc = Environ("COMPUTERNAME")
formule = "SELECT Form=" & Chr(34) & "myFormName" & Chr(34) & " & mcPoste = " & Chr(34) & pc & Chr(34)
view.SelectionFormula = formule
End Sub
I’m trying to make a view who display only documents created on the used computer (@Environment does not work on view).
Thank you for your help.