Sub Click(Source As Button) Dim session As New NotesSession Dim workspace As New NotesUIWorkspace Dim db As NotesDatabase Dim collection As NotesDocumentCollection Dim doc As NotesDocument Dim picklist As Variant Set db = session.CurrentDatabase Set collection = db.UnprocessedDocuments picklist = workspace.Pickliststrings(3, False,db.Server,db.FilePath,"sw_update", "Titel", "Eingabeaufforderung", 1) Set doc = collection.GetFirstDocument While Not (doc Is Nothing) doc.sw_update_history = picklist Call doc.Save(True,False) Set doc = collection.GetNextDocument(doc) Wend End Sub
Sub Click(Source As Button) Dim session As New NotesSession Dim workspace As New NotesUIWorkspace Dim db As NotesDatabase Dim collection As NotesDocumentCollection Dim doc As NotesDocument Dim picklist As Variant Set db = session.CurrentDatabase Set collection = db.UnprocessedDocuments picklist = workspace.Pickliststrings(3, False,db.Server,db.FilePath,"sw_update", "Titel", "Eingabeaufforderung", 1) Set doc = collection.GetFirstDocument While Not (doc Is Nothing) Set item = doc.GetFirstItem( "update" ) Call item.AppendToTextList( picklist ) Call doc.Save(True,False) Set doc = collection.GetNextDocument(doc) Wend End Sub