Column level sum/aggregation in SAPUI5 GridTable

我与影子孤独终老i 提交于 2019-12-25 09:19:41

问题


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?


回答1:


You can use method: attachRequestCompleted of the model and then find the sum by looping over the data.



来源:https://stackoverflow.com/questions/41500043/column-level-sum-aggregation-in-sapui5-gridtable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!