XPages getEntryCount与getAllEntries()。getCount() [英] XPages getEntryCount vs getAllEntries().getCount()
问题描述
我有一个包含59个文档的视图。我在客户端验证了这一点。在我的XPage的beforePageLoad事件中,我有以下代码:
I have a view with 59 documents. I verified this in the client. In the beforePageLoad event of my XPage I have the following code:
var db:NotesDatabase = session.getDatabase(sessionScope.serverPath,sessionScope.dbName);
var v:NotesView = db.getView(sessionScope.allEntriesView);
viewScope.vwEntryCount = v.getEntryCount();
viewScope.vwCollCount = v.getAllEntries().getCount();
从下面的屏幕快照中可以看到,集合计数是正确的,但是getEntryCount的文档比我在视图中看到的多3个。
As you can see from the screenshot below, the collection count is correct but the getEntryCount has 3 more documents than I see in the view.
任何想法?
推荐答案
找到了解决方案。
我未选中显示层次结构中的响应文档,在第三个选项卡中,选中了不显示空类别属性。一旦这样做,两个总数就达到62。另外三个文档是代表冲突。
I unchecked Show response documents in a hierarchy and on the third tab, checked the Don't show empty categories property. Once I did that, both counts came up to 62. The three extra documents were rep conflicts.
这篇关于XPages getEntryCount与getAllEntries()。getCount()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!