Re-Access Doc Being Saved in WebQuerySave?

This should be a very simple one but I can’t find anything exactly on point in any of the forums. In a LotusScript WebQuerySave agent I pass the doc being saved to a Script Library sub that does the following:

  1. read in a Computed When Composed value from the web doc being saved.

  2. use that value to load a Document Collection with a View GetAllDocumentsByKey, with the key being the value I got from the doc that’s being saved.

  3. walk through the Doc Collection to do lots of processing on all the documents that match the key, INCLUDING the one that’s being saved.

The problem is the new document that’s being saved will NOT show up in the view or the doc collection no matter what I do in the code. I can process all the other matching docs butg NOT the one I’m currently saving.

So in code that’s called from a WebQuerySave agent, how can I get a collection of documents sharing a certain value if one of the documents is the one being saved?

Thanks very much in advance!

Subject: Being Saved or is Saved?

You do the operations after the document is actual saved, or being saved (that is not saved yet, so no part of the view)?