Sum calculation on top of table

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Sum calculation on top of table

Post by pbottcher » 2018-04-19 20:25

Hi, I have a feature request.

it would be nice to have a selection option to display the sum calculation at the beginning of the table.
Currently it is display always at the end of the table.

today in the TABLENAME-view.php the entries get created like
$x->HTML = str_replace('<!-- tv data below -->', '', $x->HTML);
$x->HTML = str_replace('<!-- tv data above -->', $sumRow, $x->HTML);

with the switch turned to "top of the table" it could be like
$x->HTML = str_replace('<!-- tv data below -->', $sumRow, $x->HTML);
$x->HTML = str_replace('<!-- tv data above -->', '', $x->HTML);

Thanks
Pascal
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Sum calculation on top of table

Post by a.gneady » 2018-04-22 08:31

Thanks for the suggestion and code :)
I've added it to our to-do list for future releases. Stay tuned!
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply