Doesn´t SQLFORM do this automatically?
One other way to do this would be like this.
In controller:
rows = db(db.data_table.id < 0).select()
return dict(rows=rows)
In view:
<form>
<table>
{{for row in rows:}}
<tr><td>row.id</td<td>row.data</td></tr>
{{pass}}
</table>
</form>
Kenneth
Hi! I want to create a FORM using TABLE but i need to create TR's
depending of the number of Rows in a query, for example if the query
returned 3 rows i need something like:
FORM(TABLE(
TR(..)
TR(..)
TR(..)
))
I want to do this dinamically... Any thoughts?
Thanks!