I've got an XPages application running on Notes client that lets the user import some data from an external Notes application.
In order to facilitate finding of the appropriate documents I have added two fields - one to enter first letters to scroll down in a big sorted view and other for fulltext search. I've hooked the values from these fields to "startKeys" and "search" of the source view and it seems to function well... On my development machine. However if I point the view source to production server it does not always work correctly.
startKeys problem
On the view from Production machine - if I enter B, C, H - it scrolls to the particular record. If I enter A, D, E, F, G I arrive at the very top of the view. In Notes I can scroll to any of these records (actually categories) without problems. What is particularly strange - I can scroll to "Do" or "Dem", but cannot scroll to Da, De, Di, Du or simply D. I can scroll to them in Notes though (using find, i.e. just typing in the view).
What I suspect - on the production machine I cannot read all records - they contain readers fields. So if I cannot read the first category starting with D, Da or De the startKeys fail to position the view. Bug I assume.
Any other explanations or workarounds?
EDIT: Yes, it's readers fields. Or rather author's field in this case. I added some limitations for another user on my dev machine and he fails to use startKeys if the first category contains inaccessible documents.
EDIT2, Solution: in the startKeys I can calculate - get the db, view, getDocumentByKey (typedinkey, false) , and instead of typedin key return the 1st column of the document found. It will be the first doc you are allowed to see with the particular key.
search problem
the search functions correctly. but on Production machine the db is not FT indexed. For whatever reason. Typing search string in client search bar functions quickly enough, but XPage view fails to search if the target is not FT indexed.
Any ideas what to do, except the obvious - pester the other application owners to create FT index. I believe I must be able to search using an agent or java class or maybe even from javascript directly and then show the resulting doc collection in data table control, etc. So this point does not seem to be as bad as the startKeys :-)