title: Count entries in XPages view
body: <p>My XPage has a view data source with a search formula ("Search in view results") constructed from URL parameters.</p>
  
  <p>The search results are displayed in a repeat control that sits inside a panel. I want to hide this panel if there are no search results and display an appropriate message instead.</p>
  
  <p>The panel is visible based on the following code:</p>
  
  <pre><code>var vec:NotesViewEntryCollection = view1.getAllEntries();
  vec.getCount() != 0;
  </code></pre>
  
  <p>However it seems that getAllEntries returns all entries in the view before the filtering takes place. The Help for AllEntries says "If a view is filtered by FTSearch, this property returns the entries in the filtered view."</p>
  
  <p>Have I misunderstood this? Is there a way that I can get the number of entries AFTER the filtering has taken place?</p>