If min/max/sum/avg functions were added to Rows it would work on Rows with or without virtualfields since setvirtualfields returns Rows.
On Oct 28, 3:49 pm, Thadeus Burgess <[email protected]> wrote: > Guess I could always do it manually as I loop through the records :) > > Think of an invoice. It has items on it, each has a price, and tax, and a > total. Total is a virtualfield calculated from price * tax. > > At the end of the invoice, it needs to display the total for all items on > the invoice. Now this can either be done by SUM(virtualfield), or > recalculated manually, which is not so bad > > But since we have virtualfields, they might as well act like fields to, and > be able to aggregate themselves. > > -Thadeus > > On Wed, Oct 28, 2009 at 3:43 PM, mr.freeze <[email protected]> wrote: > > m not sure. That would be handy thoug --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

