Hallo,
ist es irgendwie möglich, mit Pickliststrings mehrere Spaltenwerte auszulesen?
Das Script funktioniert, aber eben mit nur einem Wert.
Wie komme ich an den 2. Wert ran?
Gruss
os
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim session As New Notessession
Dim db As NotesDatabase
Dim db2 As Notesdatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Dim docCurrent As NotesDocument
Dim docResponse As NotesDocument
Dim collection As NotesDocumentCollection
Dim picklist As Variant
Dim curdoc As notesdocument
Set curdoc = workspace.currentdocument.document
Set db=session.CurrentDatabase
Set db2=session.GetDatabase("sv43-fw-domino","vito\adrvitoma.nsf")
Set view = db2.getview("Pickasp")
Set docCurrent = workspace.CurrentDocument.Document
Set docResponse = New NotesDocument(db)
Set uidoc = workspace.CurrentDocument
'=====================================================================================
'===Single selection
'=====================================================================================
Dim tmpSelect As String
picklist = workspace.Pickliststrings(PICKLIST_CUSTOM, False, db2.server,db2.filepath, "Pickasp", "Selection", "Select person", 10)
If ( Isempty( picklist ) ) Then Exit Sub
Forall plist In picklist
If plist <> "" Then
tmpSelect = plist
End If
End Forall
curdoc.txtPResponsible = Strleftback(tmpSelect,"#")
curdoc.txtPMailResponsible = Strrightback(tmpSelect,"#")
Call uidoc.Refresh
Call docCurrent.Save(True, True)
...
End Sub