My XPage has a view data source with a search formula ("Search in view results") constructed from URL parameters.
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.
The panel is visible based on the following code:
var vec:NotesViewEntryCollection = view1.getAllEntries();
vec.getCount() != 0;
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."
Have I misunderstood this? Is there a way that I can get the number of entries AFTER the filtering has taken place?