hi,
ich versuche grad mal meine collection mit allen dokumenten
der Inbox zu laden. komm da leider nicht weiter....
es gibt beim view die möglichkeit einer methode
(getalldocumentsbykey) ein key mit auf dem weg zu geben.
ich hab leider nur keine ahnung welchen..... aus der domino-desinger-hilfe bin ich leider auch nicht viel schlauer geworden...
oder gibt es eine möglichkeit das wenn ich beim datenbankobjekt
der collection alle dokumente mitgebe(myCollection =
myDB.AllDocuments) innerhalb der collection nach dem view zu suchen?
notesdocumentcollection mit den docs einer bestimmten view füllen
- astra
- Erledigt
-
-
Zitat
ich hab leider nur keine ahnung welchen.....CodeSyntax Set notesDocumentCollection = notesView.GetAllDocumentsByKey( keyArray [, exactMatch% ] ) Parameters keyArray String (variable-length only), integer, long, single or double value, or array of string, number, DateTime, or DateRange objects. Each element in the array is compared to a sorted column in the view. The first element in the array is compared to the first sorted column in the view; the second element is compared to the second sorted column; and so on.
-
soll ich da jetzt die universalID vom ersten document eingeben oder wad?
-
Dann bekommst Du nur das erste Dockument zurueck.
Da die Inbox ja fast immer flach strukturiert ist, hilft eigentlich auch eine notesviewentrycollection in der Form:Code
Alles anzeigenDim db As New notesdatabase("Server","mail\meine.nsf") Dim v As notesview Set v = db.getview("($inbox)") Dim view_entry As notesviewentrycollection Set view_entry= v.allentries Dim ve As notesviewentry Set ve = view_entry.getfirstentry Dim doc As notesdocument While Not(ve Is Nothing) Set doc = ve.document Set ve = view_entry.getnextentry(ve) Wend
-
klappt super. danke.