Domino 9 und frühere Versionen > ND6: Entwicklung

Mehrere Spaltenwerte mit PICKLISTSTRINGS aus einer anderen DB?

(1/2) > >>

networkaccess:
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

koehlerbv:
Mit PickListStrings geht das nicht. Warum verwendest Du nicht PickListCollection?

Bernhard

networkaccess:
Der User soll eine einzige Auswahl treffen:

wenn er 'Herbert' auswählt soll in einer Variablen

'Herbert' und in einer anderen 236 gespeichert werden...


Beispiel Ansicht:

Name              Personalnummer                Telefon
===================================
Franz              986                                     125
Herbert           634                                     236
Karl                 990                                     877


Ist das nicht bei der Collection so, das nur mehrere Werte selektiert werden können...?

koehlerbv:
Und wofür ist dann der zweite Parameter da?  ;)

Bernhard

networkaccess:
Welcher 2te Parameter??
(Werde aus der sch.... Notes-Hilfe nicht schlau)

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln