Sum of rows

A collection of tutorials and posts that show additional functionality of MATE

Moderator: KarelB

Sum of rows

Postby Maplache » Tue Apr 11, 2017 4:06 pm

Hello, I have a field called 'Amount' on my database which stores amounts of money, I would like to display the total amount (sum of all the rows), is this possible?
Posts: 1
Joined: Tue Apr 11, 2017 4:03 pm

Re: Sum of rows

Postby admin » Fri Oct 13, 2017 2:26 pm

There is a total_column option that you could try. It's not documented because it is an experimental feature and you may have to do some debugging to get it to work.

You would use it like this:

Code: Select all
      $tableColumns['amount'] = [
         'display_text' => 'Amount',
         'perms' => 'EVCTAXQSHOF',
         'total_column' => true

And I think this only works when not using the add / edit in place features.
Site Admin
Posts: 1502
Joined: Fri Jul 11, 2008 1:34 am

Return to How To

Who is online

Users browsing this forum: No registered users and 1 guest