I am looking for suggestions on what might be causing calls to getFirstDocument to return null.
I am writing a java web service using Domino Designer 8.5 and after creating a View object I get a value from getEntryCount() but when I use getFirstDocument() it turns out it is null. I have also tried with DocumentCollections and ViewEntryCollection and have the same result.
This snippet:
response = "View has " + mView.getEntryCount() + " entries\n";
Document doc = mView.getFirstDocument();
if ( doc == null ) {
response = response + " First document is null";
}
Produces:
View has 1124 entries
First document is null
Any clues to help me get access to the documents in the view?
Thanks
Subject: Reader fields ?
Could it be that the ID you are running under does not have access to any documents in that view ?
Subject: Yes, it could be permissions
Thanks for your response.
I am new to Domino development so I may be overlooking something with permissions. Here are a few things I have tried to get this working with regards to permission.
Tried setting each of the form, view, and web service to allow Public Access.
Tried setting the web service to web user and also tried to set it with my id (which has full access).
Tried setting each of form, view, and web service to specifically allow my ID (rather than my role).
None of these worked for me. Is there somewhere else I should be setting the ACL? I opened some of the documents and verified that my ID is on the list of readers. If I have the web service set to run on my behalf should I not be able to read those documents?
Thanks for any additional help.