View method getAllEntriesByKey returns incorrect number of entries

I’m developing a J2EE client to access a domino database. I am using SSO, Data Access Objects and DIIOP to access my domino data. The setup is behaving as expected.

One of my methods to retrieve documents creates a ViewEntryCollection based on a view categorized by username and the user currently logged in.

The problem is that the getAllEntriesByKey method is returning all the documents that the current user has created and not just the documents that are categorized by common name.

i.e. I have ten (10) docments categorized in a view based on my common name. There are thirteen docs in the database that I have created. The getAllEntriesByKey method returns 13 documents and not the expected 10.

I thought I should also mention that creating a ViewNavigator produces the same result. 13 docs are returned and not 10. A db search based on field that the view is categorized by does return ten documents but it takes ~2500 ms instead of ~500 ms for a ViewEntryCollection. This is a wireless app so I would like to be able to use one of the view interfaces.

Anyone out there with any ideas or an explanation as to why I’m seeing this behaviour?

Regards,

Jonathan

Subject: View method getAllEntriesByKey returns… SOLVED

My apologies. I was using the wrong view. D’oh!

Regards,

Jonathan

Subject: RE: View method getAllEntriesByKey returns incorrect number of entries.

a view categorized by username and the user currently logged in.

I don’t understand what that means in practical terms. A view categorized by a field in the document that contains a username in common format, that I get. Where does “the user currently logged in” factor into the design of the view? Are you aware that @Username is not allowed in the formulas of a shared view?

Do the entries appear in multiple categories?

What is the category for the documents that you do want to retrieve, and for the documents that you don’t want to retrieve?

Where’s your code?