I have a view with an action button that needs to display a Prompt([OkCancelList]) and run an agent based on the selection made. The problem is I can’t get the Prompt to display. In the debugger it hits the line and jumps right to the next line. Can you display a prompt from an action button n a view? I always thought it was possible until now. Anyone have any ideas?
Sub Click(Source As Button)
Dim session As New NotesSession
Dim uiWorkspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim response As Variant
Dim nonActiveDocs() As Variant
Dim a As Integer
a = 0
Redim Preserve nonActiveDocs(a)
nonActiveDocs(a) = ""
a = a + 1
Set db = session.CurrentDatabase
Set view = db.GetView("ActiveGroupNumbersLU")
Set doc = view.GetFirstDocument
While Not (doc Is Nothing)
If doc.Active(0) = "NotActive" Then
Redim Preserve nonActiveDocs(a)
nonActiveDocs(a) = doc.GroupNo
a = a + 1
End If
Set doc = view.GetNextDocument(doc)
Wend
If a > 0 Then
response = uiWorkspace.Prompt( 4, "Select a Group", "Select a Group to Activate", "", nonActiveDocs)
If Isempty(response) Then
Else
blah, blah, blah