Hallo zusammen!
Ich habe folgendes Problem:
Ich benutze Lotus Notes 6 und bearbeite einen View im Designer. Dieser View hat eine Aktionsleiste mit Aktionen. Eine dieser Aktionen soll mir das aktuelle Dokument löschen. Das versuche ich mit folgendem LotusScript:
1 Dim ws As New NotesUIWorkspace
2 Dim uidoc As NotesUIDocument
3 Dim doc As NotesDocument
4 Set uidoc = ws.CurrentDocument
5 Set doc = uidoc.Document
6 Call doc.Remove(True)
Leider klappt das nicht. Wenn ich das Script ausführe, erscheint bei Zeile 5 die Meldung "Object variable not set". Ich vermute, daß es damit zusammenhängt, daß es kein CurrentDocument gibt, bzw. daß das aktuelle Dokument erst geöffnet werden muß oder so ähnlich.
Hat jemand eine Idee, wie ich da weiter kommen kann?
Vielen Dank!
Michael Bayerl