我在表单中有一个按钮,它会带来视图文档的选择列表...我的问题是无法将选择列表中的选定文档设置为“Superior1”字段..请帮助我..以下是点击活动脚本...
Sub Click(Source As Button)
Dim session As New notessession
Dim view As NotesView
Dim view1 As notesview
Dim doc As notesdocument
Dim db As Notesdatabase
Dim Overdb As notesdatabase
Dim og As String
Dim Sup As String
Set db=session.CurrentDatabase
Set Overdb=session.GetDatabase(gsserver, "Master\\ASEAN_Staff.nsf")
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim picklist As Variant
Set uidoc = workspace.CurrentDocument
og = uidoc.FieldGetText("OfficeGroup_Key")
picklist = workspace.PickListStrings( PICKLIST_CUSTOM,_
False,_
gsserver,_
"Master\\ASEAN_Staff.nsf",_
"x_asean_superior1",_
"Select Name",_
"Choose",_
1,_
og )
If Isempty(picklist) Then
Exit Sub
Else
Set view = Overdb.GetView("x_asean_Superior1")
Set doc = view.GetdocumentByKey(picklist, False)
Sup=doc.ColumnValues(1)
Call uidoc.FieldSetText("Superior1", Sup)
End If
End Sub
如果我错了,请纠正我……从选择列表中选择一个文档时……第一个文档被设置到“Superior1”字段中……我选择的 wateva 没有在该字段中设置……