Alright, now i understand. Thats a pretty good structur, thank you very
much :)
Am Donnerstag, 22. Mai 2014 13:12:19 UTC+2 schrieb Lucas Schreiber:
Hey,
i'm sorry, i need help again :)
i have a db table, and i want to create a üage where for every row is a
form. my idea looks like this:
You could do something like form.process(formname='form%s' % row.id). But
then you don't want to have to create and process all the forms when just a
single form is submitted, so include some logic to check for a form
submission, and in that case, just construct the single form that has been
Also, you can't keep overwriting the form variable in your loop. Instead,
you'll want to create a list of forms to send to the view.
On Thursday, May 22, 2014 7:21:34 AM UTC-4, Anthony wrote:
You could do something like form.process(formname='form%s' % row.id). But
then you don't want to
but how can i create a list of forms?
this code does not work since form is a string ( or, at least, no int,
double float,...)
for row in row_db:
form_element=FORM('Your name:',
SELECT(),
INPUT(_type='submit', _value = 'HERE'))
form_list = []
for row in row_db:
form_list.append(FORM(...))
You're not making one big form -- it is a list of separate forms. You would
then have to iterate over the list in the view in order to display them all.
Anthony
On Thursday, May 22, 2014 10:29:30 AM UTC-4, Lucas
5 matches
Mail list logo