Entering Entries in XPages

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?

+5
source share
2

dominoView SSJS, dominoView, NotesView. NotesView. datasource dominoView, NotesView.

, (, , viewPanel ..) getRowCount(). . .

getComponent("repeat1").getRowCount() 
+15

....

: " 30 30220"

<xp:this.caption><![CDATA[#{javascript:return "Displaying " + getComponent("viewPanel1").getRowCount() + " of " + view1.getAllEntries().getCount();}]]></xp:this.caption>

. .

0

All Articles