我有一顿语,可以带出一份观点文件一览表。 我的问题无法把从小名单中挑选的文件划入“Superior1”领域。 plz帮助我,下面是点击事件说明。
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
如果我错错了,Plz就纠正我。 在从选人中挑选文件时,第1份文件已进入“Superior1”领域。