will try. Thanks. ** Dont know if this is the appropriate place to ask for this but looking around the group I saw a post about a class certificate offering. Do you have an online class by any chance?
On May 11, 2:16 pm, mdipierro <[email protected]> wrote: > First I would rewrite it as > > def view_totals(): > rows = db().select(db.tableorder.ALL, > db.tableorder.totalsale.sum(),groupby=db.tableorder.orderdate) > for row in rows: print > row.tableorder.ordernumber,row[db.tableorder.totalsale.sum()] > return dict(rows=rows) > > <table> > {{for row in rows:}} > <tr><td>{{= row.tableorder.ordernumber}}</ > td><td>{{=row[db.tableorder.totalsale.sum()]}}</td></tr> > {{pass}} > </table> > > On May 11, 12:37 pm, greenpoise <[email protected]> wrote: > > > I have this: > > > def view_totals(): > > rows = db().select(db.tableorder.ALL, 'sum(tableorder.totalsale)', > > groupby=db.tableorder.orderdate) > > for row in rows: print row.tableorder.ordernumber, > > row._extra['sum(tableorder.totalsale)'] > > return dict() > > > What would be my view to present my sum?

