GetAllDocumentsByKey

Hi All, i am facing one problem with GetAllDocumentsByKey.

I am having a view which contains 1st,3rd,4th & 5th columns are categorised. i am using the below code to get the document collection.

USERnames= nameUser.Abbreviated

set DocCollection= Uiview.View.GetAllDocumentsByKey(USERnames)

In that view total i am having 100 documents & by that key (username) having 8 documents but the DocCollection count is showing only 4 documents & that collection is containing 4 documents.

The present apperance of the view is like below:

->name

 ->year

    ->month         

       ->day

         -> type

            doc1

            doc2

            doc3

            doc4

         ->type

            doc1

         ->type 

            doc1

            doc2

         ->type

            doc1

why its taking only 4 documents & if i need to get all the 8 documents means what i can do. please help me.

Regards,

Archi.

Subject: GetAllDocumentsByKey

Create an additional view with name being the only categorized column (or just make it sorted for that matter).

Subject: RE: GetAllDocumentsByKey

Alternatively, use the NotesViewEntryCollection to find all the documents you want; that will let you avoid creating another view.

Subject: RE: GetAllDocumentsByKey

Hi Sir, Thank you for u r response. yes but, is there any other way instead of creating the new view?

Thanks & Regards,

Archi.

Subject: RE: GetAllDocumentsByKey

No, not using GetAllDocumentsByKey (which is very fast and therefor desirable to use).

It is good practice anyway to NOT run any lookups against user visible views. Some day some important big head will come along and tell one developer to insert some very important additional column. If this developer is not you, he might have a hard time knowing that this view is used for anything else but user’s viewing pleasure.