title: Retrieving column values in filtered xpages view
body: <p>I have a view defined on an xpage.  I also have several filters (based on the columns) that the user can select and combine to filter the results in the view.  I generate a query string based on this that I construct in dominoView.search (doing a complete refresh).  What I would like to do is get the results of the search so that I can then update some counts displayed elsewhere on the page.  I'm having a hard time figuring out where I can perform this logic, though.  I'm trying to use view.getAllEntries() and then iterating over the collection.  Sometimes it seems like it works, but other times I seem to be getting the unfiltered view.  Someone suggested I explicitly call view.FTSearch inside one of the events (beforePageLoad?) and immediately after do my getAllEntries call, saving the results in viewScope, but I get an "Error while browses Notes view" runtime error when I try to do that.  Any pointers?  TIA!</p>
  
  <p>EDIT: After studying the xpages lifecycle a bit (which is still a little confusing), I think I can fine-tune my question.  This is my first stackoverflow question, so I hope this is okay to do and productive....</p>
  
  <p>As I described, I have a dominoView defined on my xpage.  A repeat iterates over the rows of the view, displaying certain fields from the documents.  If I define a query in the search property, then the repeat correctly displays the reduced set of documents rather than the complete set.  (The query is computed in the search property via SSJS from some variables defined in the viewScope in a combobox's eventHandler.)  However, if I try to access the current entries in the view inside of the repeat's rendered section (with SSJS) using myView.getAllEntries (where myView is what's defined as the "value" of the repeat), I am still getting all of the documents, even if a query has been done.  It seems like at that point, the view variable has already had its search applied (since the repeat works), so why the differing results?  Is there another way to access the view's rows?  To complicate this further, this is just a simple experiment that might clarify the problem; as I indicated earlier, I don't actually want to access the view data within the repeat, I want to access it in the rendered or value sections of some comboboxes defined before the repeat in the xpage file.</p>
  
  <p>I hope that makes more sense now....</p>
  
  <p>EDIT #2: I forgot to add that if I manually call FTSearch (or FTSearchSorted) before calling myView.getAllEntries, then I think I can make this work.  It just seems unnecessary to have to do that in addition to the view's built-in search.</p>