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 Schreiber wrote:
>
> 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.append(form_element)
>
>
> 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:
>>
>> row_db = dba(dba.user.user_id == user_id).select(dba.user.ALL)
>> for row in row_db:
>>         form=FORM('Your name:',
>>                    SELECT(),
>>                    INPUT(_type='submit', _value = 'HERE'))
>>         if form.process(formname='form_one').accepted:
>>
>> but it does not work since every time the form variable gets replaced. 
>> Has anyone an idea? maybe it is possible to create something like this?
>> form_'a'=FORM('Your name:',...
>> and 'a' changes with every loop? but i don't think it'll work like that.
>> Does anyone has an idea?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to