Using the Java API to read Lotus Notes documents

I am using the Lotus Notes 6.5.1 Java API to read the .nsf file. Each document in the .nsf file has several documents. By viewing documents in an .nsf file using the Lotus Notes Java API, I get all versions of documents as separate documents.

How do I ensure that Lotus Notes receives only the latest version of each document? Is there a way to uniquely identify a document and its entire version history as their children?

+3
source share
1 answer

There is a built-in function for documenting versions in Notes Domino. Depending on the models that he configured in the database design (and assuming that the database designer is not working independently), the versions will either respond to the original parent or vice versa, where new versions become parent, with older versions being the answer.

All this, however, is to automatically adjust the hierarchy of responses in the database when you edit documents. How all other database structures interact with this hierarchy depends on the developer.

What you probably want to do is create a view that displays only documents at the top of the response hierarchy. You can then review this view and know that the documents you receive from it are the latest versions.

, , "", .

SELECT form*="Article" & !@IsAvailable($ref)

, . .

,

doc.getResponses()

a DocumentCollection, . . doc.getParentDocumentUNID(), db.getDocumentByUNID(). , :

db.getDocumentByUNID(doc.getParentDocumentUNID())

, , .

+3

Source: https://habr.com/ru/post/1703912/


All Articles