I need to check if a document listed in VIEW A is also listed in VIEW B. Does anyone know how to check against multiple views?
Thanks to anyone in advance who can help.
I need to check if a document listed in VIEW A is also listed in VIEW B. Does anyone know how to check against multiple views?
Thanks to anyone in advance who can help.
Subject: Comparing documents in view
Start by looking up the GetDocumentByKey method in Designer Help.
Subject: Comparing documents in view
In LotusScript, you could loop through the documents in both views and compare document IDs. What, exactly, do you want this for?
Subject: RE: Comparing documents in view
I have documents with a key(policy number) that is in view VIEW A. I need need to see if a document in VIEW B was created with that key.
Thanks for your help.
Subject: RE: Comparing documents in view
Scatching my head a bit. Are these different documents or the same document in different views?
Subject: RE: Comparing documents in view
Horribly ineffecient.
GetDocumentByKey to a look up view sorted by the key in question would be better.
Subject: RE: Comparing documents in view
They are different document referring to one policy number(key).
Subject: RE: Comparing documents in view
GetDocumentByKey or GetAllDocumentsByKey, then. You’ll need views sorted by the policy number. You can use those commands to get a document or a collection of documents which have that policy number.
Subject: RE: Comparing documents in view
Got it. Thanks!
Subject: RE: Comparing documents in view
Inefficient, yes, or at least slow, but using GetDocumentByKey for this assumes that the key uniquely identifies the document. You could have any number of documents in view A with a given value in the key field and just one in view B. Using GetDocumentByKey, you’d get an apparent match every time, even though some documents in view A are clearly not in view B.
That said, it is starting to sound like she’s looking to match individual values, not documents, so GetDocumentByKey would be the way to go.