Thanks Bruno,
I needed a very simple table no extra layout so I did it with
table = TABLE()
for row in rows:
table.append(TR(row.name, rows.sum, A(.))
table.append(TR('Total', total))
Kenneth
I did it with powerTable plugin, see what I did.
def deletable():
class Virtual(object
I did it with powerTable plugin, see what I did.
def deletable():
class Virtual(object):
@virtualsettings(label=T('Delete'))
def delete(self):
return
TAG.BUTTON(T('DELETE'),_class='deletebutton',_onclick='deleteRow(event,%s);'
% self.products.id)
@virtuals
I think the easiest way is building virtual fields for that.
You can use powerTable plugin, which can do that in JavaScript using this
feature of datatables http://datatables.net/examples/api/counter_column.html
virtual fields works in this way:
class Virtual(object):
def delete(self):
Hello list,
what would be the easiest way to display a Rows object as an table with
some additional info.
rows = db(db.items.order = order.id).select() gives 3 rows and 10 fields.
total = 0
for row in rows
total += rows.sum
That I´d like to display data as:
Item 110.50delete
4 matches
Mail list logo