SAPUI5 GridTable中的列级总和/汇总 [英] Column level sum/aggregation in SAPUI5 GridTable

查看:198
本文介绍了SAPUI5 GridTable中的列级总和/汇总的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在SAPUI5 GridTable列底部处汇总/汇总财务数据.我正在从基于SAP HANAodata 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆