On Wednesday, July 25, 2018 at 5:41:26 PM UTC-4, Anthony wrote: > > On Wednesday, July 25, 2018 at 3:49:09 PM UTC-4, pbreit wrote: >> >> How about JavaScript? >> >> >> https://www.oreilly.com/library/view/javascript-cookbook/9781449390211/ch04s07.html >> > > Having the database do it is most efficient -- you neither have to get all > the data from the database into the Python environment, nor then send it > all to the browser -- just let the database do the calculations directly > and send only the result to the browser. >
Also, note that the linked solution would sum only the values displayed in a single page of the grid, but the goal is to sum all the values in the database table. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.