GetAllReadDocuments

Quick Question -

the method in the class NotesDatabase called GetAllReadDocuments …the Help says it returns a NotesNoteCollection. Shouldn’t that be a NotesDocumentCollection ? For that matter, the whole NotesNoteCollection class is strange to me - there is no NotesNote class ! How can you have a collection of objects of a type that there is no class for ??

Subject: It’s what it sais it is

The NoteCollection is new in R8. It wont show in the index, but a link is there from notesdatabas->GetAllReadDocuments:

or online : http://lnweb90.worldbank.org/help/help8_designer.nsf/f4b82fbb75e942a6852566ac0037f284/7c296a9261ed79808525731b004a3d56?OpenDocument

Subject: ?

Thats great, something that I already knew - yeah, I’m aware of the NotesNoteCollection class. See my post above. And I know about the help system. But thanks, guy.

My original post asks two specific questions…anyone with any info, glad to hear from you.

Subject: ? ! ?

hmm, i dont see the problem,

you have a NotesCollection.

using getFirstNoteID and getNextNoteID will return you a string containing the document note id.

by using notesdatabase.getdocumentbyid (string from the collection) you will get the actual document.

So basicly a notecollection is the same as a notesdocumentcollection with the difference that it contains pointers instead of actual documents.

Subject: A note is a fundamental “object” in the domino object model

the method in the class NotesDatabase called GetAllReadDocuments
…the Help says it returns a NotesNoteCollection. Shouldn’t that be a NotesDocumentCollection ?

No, a NotesNoteCollection returns a collection of Notes objects. Notes objects include Notesdocuments, NotesViews and NotesForms among other objects.

For that matter, the whole NotesNoteCollection class is strange to
me - there is no NotesNote class ! How can you have a collection
of objects of a type that there is no class for ??

A NotesNote [sic] class is there, it’s just not exposed in the LotusScript or Java based APIs. From The History of Notes and Domino (by Richard Schwartz):

Ray and the other engineers at Iris devised the Notes Storage Facility, or NSF file. It’s a bit of

an oversimplification, but the best way to think of an NSF file is as a container full of different

types of notes. Some notes are data notes, also known as documents, which contain the data

that users work with. Some notes are design notes, also known as design elements, which con-

tain meta-data that controls the formats in which users see and edit the data documents.

Subject: Not sure about this one but there are some bugs in both the help and the product

Depending on your version of 8, there are bugs with the classes on getting unread/read docs. I would have to review my notes to see if this one worked or not.

Also, the documentation had some bugs too.

8.0.2 seems to fix the product bugs.

Howard