Domino 9 und frühere Versionen > ND6: Entwicklung

View.GetNextDocument aus DocumentCollection

<< < (3/3)

Untitled:
Zu früh gefreut. Funktioniert leider doch nicht....


--- Code: --- Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim uiWS As New NotesUIWorkspace
Dim view As NotesView
Dim doc1 As NotesDocument
Dim doc2 As NotesDocument
Dim entry As NotesViewEntry
Dim entryCollection As NotesViewEntryCollection

Set view = uiWS.CurrentView.View
Set entryCollection = view.AllEntries
Set db = view.Parent
Set dc = db.UnprocessedDocuments
Set doc1 = dc.GetFirstDocument
Set entry = entryCollection.GetEntry(doc1)
Set doc2 = entry.Document

Msgbox doc2.ParentView.Name
Msgbox doc2.ColumnValues(0)

--- Ende Code ---

Das Dokument (doc2) hat nichteinmal mehr die Parent-View. Aber gesetzt wird es, die UNID kann ich mir zum Beispiel ausgeben lassen.

Habe ich jetzt was übersehen?

Moritz

Untitled:
"NotesUIView.Documents" funktioniert übrigens auch nicht. Obwohl ich nicht nachvollziehen kann, was daran nicht "Accessed through a view" sein soll...

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln