LotusScript: Get a collection of a Collection

3845 pts.
Tags:
Lotus
I could swear that I read that it is possible to get a collection, then get a smaller collection from that collection. I've checked R5 and R6 help and can't find this documented. Do any of you know if this is possible? Specifically, I want a scheduled agent to get a collection of all unprocessed documents, then get all the documents in that collection that have a specific form. I'm already walking through the collection and using Select Case using the form value, but it takes too long to process. Finally: Is there an incorrect database setting that could prevent a document from retaining a Processed value when I set it? My assumption is that as I walk through the collection and mark documents as processed, they should not get processed the next time it runs (unless modified) even if the agent ends abnormally (takes too much time). Instead, it appears that all documents are found as new or modified every time the agent runs. This runs as a scheduled agent on an R6.5.3 server with a maximum agent run time of 90 minutes. Thanks in advance for any help you can provide.

Answer Wiki

Thanks. We'll let you know when a new response is added.

To get a subcollection of af collection use
Set subcoll = collection.FTSearch(query,0)

For you second question
I have no problem with session.UpdateProcessedDoc
But keep in mind that an agent will allways run on all
documents again when restartet.

By the way if your agent often takes more than your max agent run time (90min) then consider modifying the code and do a check for how long the agent have run and do a clean stop in the loop on the collection, when time is near the max time.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following