getAllDocumentsByKey - (Javascript ServerSide)

Hi

I tried to getAllDocumentsByKey(Key,true) using Javascript(ServerSide) but it keeps returning 0 count, though i have more than one doc.

var SubCatView:NotesView=database.getView(“vLkupSubCatByPar”);

var SubCatDocColl:NotesDocumentCollection=SubCatView.getAllDocumentsByKey(ParentCatID);

var TotalSubCat=SubCatDocColl.getCount();

Pls let me know if anything needs to amended/added to make this code work. Thanks !

Regards,

Karthik KS

Subject: Is your view column sorted?

Subject: and hopefully not categorized…

If you use a categorized column and there are other categories to the right than it will only return what was in the first category to the right of your sort column that matched.

Howard