xpages-ssjs

Count entries in XPages view

扶醉桌前 提交于 2019-11-27 21:58:16
问题 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