Just return 1 document when using getAllDocumentsByKey

hi: i use getAllDocumentsByKey to find some special documents in view, and a NotesDocumentsCollection for return value, but the return value documentsCollection just have 1 document, the fact it should be have more documents than 1? anyone can give some help? ths!

Subject: just return 1 document when using getAllDocumentsByKey

You are passing a string or string array as the argument, right?

Look at the properties sheet for the documents that you think should be appearing in the collection. Is the item actually the same datatype. For example if you have docs sorted by field Amount, and in some docs the value is “150” and in others the value is 150, getalldocsbykey(“150”, true) will return only the docs where the value is a String, though they may all appear together in the view.