我想要适当的按钮单击事件的莲花脚本,单击时会弹出一个员工关键字列表以选择并放置在superior1字段上......我不确定要给出的参数......请帮助我...... .我按照下面的脚本,它没有工作......它显示在一个空的对话框列表......:(......或者为我提供一个替代公式或sumthin来解决这个问题......谢谢很多......
Sub Click(Source As Button)
Dim session As New notessession
Dim view,view1 As NotesView
Dim doc,doc1 As notesdocument
Dim db As Notesdatabase
Set db=session.CurrentDatabase
Dim Overdb As notesdatabase
Set Overdb=session.GetDatabase(db.server, "Master\\ASEAN_Staff.nsf")
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim picklist As Variant
Set uidoc = workspace.CurrentDocument
If Superior1= "" Then
Sup1$ = uidoc.FieldGetText("Superior1")
picklist = workspace.PickListStrings( PICKLIST_CUSTOM,_
False,_
db.server,_
"Master\\ASEAN_Staff.nsf",_
"x_asean_search",_
"Select Name",_
4,_
Sup1$ )
End If
End Sub
非常感谢 Hristo 和 mbonaci ...:) 我已经使用 pickliststrings 解决了问题,并且我已经得到了我想要的 wat,即显示按组列分类的 super1 关键字列表... foll 是我使用的脚本。 ..
Sub Click(Source As Button)
Dim session As New notessession
Dim view As NotesView
Dim view1 As notesview
Dim doc,doc1 As notesdocument
Dim db As Notesdatabase
Set db=session.CurrentDatabase
Dim Overdb As notesdatabase
Set Overdb=session.GetDatabase(gsserver, gspath + "Master\\ASEAN_Staff.nsf")
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim picklist As Variant
Set uidoc = workspace.CurrentDocument
If Superior1= "" Then
'Sup1 = uidoc.FieldGetText("Superior1")
'Ofc = uidoc.FieldGetText("Office")
Gp = uidoc.FieldGetText("Group")
'og = doc.Office + doc.Group
picklist = workspace.PickListStrings( PICKLIST_CUSTOM,_
False,_
gsserver,_
"Master\\ASEAN_Staff.nsf",_
"x_asean_search",_
"Select Name",_
"Choose",_
1,_
Gp )
End If
End Sub
现在,在从列表中选择任何关键字时...例如:“Executive”应该放在当前文档/表单的“Superior1”字段中... wazz 这个脚本...请帮助我...