My XPage has a view data source with a search formula ("Search Results in View") built from URL parameters.
Search results are displayed in the repeat control, which is located inside the panel. I want to hide this panel if there are no search results and a corresponding message is displayed.
The panel is visible based on the following code:
var vec:NotesViewEntryCollection = view1.getAllEntries();
vec.getCount() != 0;
However, it seems that getAllEntries returns all the records in the view before filtering occurs. Help for AllEntries says: "If the profile is filtered by FTSearch, this property returns records in a filtered form."
Did I misunderstand this? Is there a way to get the number of records after filtering?
source
share