Column level sum/aggregation in SAPUI5 GridTable

1.5k Views Asked by At

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

There are 1 best solutions below

1
On

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