Morgen zusammen,
ich möchte gerne über eine DialogBox den Wert eines Feldes in einer Dokumentenauswahl ersetzen.
Hier das script:
Sub Click(Source As Button)
Dim col As notesdocumentcollection
Dim doc As notesdocument
Dim ws As New notesuiworkspace
Set sess = New notessession
Set cdb = sess.currentdatabase
Set col = cdb.unprocesseddocuments
Set doc = col.getfirstdocument
Call ws.DialogBox("form_db_lps_select", True, True, False, False, False, False, "Auswahl", doc)
Do Until doc Is Nothing
Call doc.ReplaceItemValue("sfd_pri_select_contact",Untitled)
Call doc.ComputeWithForm( False, False)
Call doc.Save(True, False)
Set doc = col.getnextdocument(doc)
Loop
End Sub
Problem: Das script scheint den neuen Wert (im Feld Untitled) nicht im Dokument zu setzen. Der Inhalt des Feldes wird einfach nur gelöscht.
Weiß einer wo der Fehler liegt?