在 Lightswitch 2013 中,我想在屏幕上显示给定查询 (FilteredIncidents) 中的项目总数 (Incidents) - 例如:
“显示 5000 个事件中的 200 个”。
但是,我只能获取屏幕上加载的项目数。如何显示总数?
这就是我正在做的获取已加载到屏幕上的项目的数量:
myapp.BrowseIncidents.TotalIncidents_postRender = function (element, contentItem) {
contentItem.dataBind('screen.FilteredIncidents.count', function (value) {
contentItem.screen.TotalIncidents = value;
});
};