Suman Biswas
Suman Biswas

Reputation: 169

Column level sum/aggregation in SAPUI5 GridTable

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?

Upvotes: 0

Views: 1674

Answers (1)

Rahul Bhardwaj
Rahul Bhardwaj

Reputation: 2343

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

Upvotes: 1

Related Questions