Re: [web2py] Create TRs dinamically in a FORM

2010-11-15 Thread Kenneth Lundström
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: {{for row in rows:}} row.idrow.data {{pass}} Kenneth Hi! I want to create a FORM using TABLE but i need to create T

[web2py] Create TRs dinamically in a FORM

2010-11-15 Thread CesarBustios
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!