Hi,I need to write an agent that will compare two DBs by key value (hence, will be reading documents from views sorted on a key). One action as a result of comparing these DBs is to delete a document. However, I see the view class does not have a deleteDocument method. Any suggestions on how I compare two DBs like this and have access to the deleteDocument method? (I’m assuming reading documents serially from a collection won’t do as they are not sorted).
Thanks,
Bennie Gibson
Subject: The DOCUMENT has a Remove method.
If the above does not solve your problem, we need more information about what you’re doing. If you’re not sure what information to supply, the C R I S P Y document might help you.
- Andre Guirard, IBM/Lotus Development
Useful blog: Best Practice Makes Perfect
Subject: You got it
Thanks - I missed the remove method for documents. Thanks again!
Subject: Use Subtract method?
I may have the wrong end of the stick, but if you want to get the documents that are in one list and not in another, you could use the Subtract method of notesdocumentcollection or notesviewentrycollection & delete those?