我有一个带有操作按钮的视图,该按钮需要显示 Prompt([OkCancelList]) 并根据所做的选择运行代理。问题是我无法显示提示。在调试器中,它命中该行并直接跳到下一行。您可以从操作按钮 na 视图中显示提示吗?直到现在我一直认为这是可能的。有人有想法么?
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