SAPUI5 GridTable中的列级总和/汇总 [英] Column level sum/aggregation in SAPUI5 GridTable
本文介绍了SAPUI5 GridTable中的列级总和/汇总的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在SAPUI5 GridTable
中列底部处汇总/汇总财务数据.我正在从基于SAP HANA
的odata services
填充财务数据,但是该服务无法在数据集底部提供总计.因此,我的GridTable
没有显示总计.您能否提供示例代码或想法,如何在UI5
应用程序中计算并显示总计?
I need to sum/aggregate of finance data at the bottom of Column in SAPUI5 GridTable
. I am populating finance data from SAP HANA
based odata services
but the service can not provide Total at the bottom of data set. Hence my GridTable
not showing Total. Can you please provide sample code or idea how I can calculate and show Total in UI5
application?
推荐答案
You can use method: attachRequestCompleted of the model and then find the sum by looping over the data.
这篇关于SAPUI5 GridTable中的列级总和/汇总的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文