Not sure if i understood, but
if you have multiple forms, you can use SQLFORM with form.accepts(formname =
'form_'+str(i), ...)
each form has it's own formname, so form.accepts will know which one is
submitted.
Is that your problem?

On Sun, May 22, 2011 at 10:02 AM, 黄祥 <steve.van.chris...@gmail.com> wrote:

> hi,
>
> is it possible to use form in loop view?
>
> e.g.
> {{for i, row in enumerate(rows):}}
>    {{if i == items_per_page: break}}
>
>    {{db.blog_comment.blog_id.default = row.id}}
>    {{form = crud.create(db.blog_comment,
>                         message = T('Record Inserted'))}}
>
>    {{=DIV(form)}}
> {{pass}}
>
> i just can show the form, but when i submit the data is not in
> database blog comment, i've already tried sqlform too but got same
> result.
>
> did anyone know how to fix it?
> any hints, solutions is greatly appreciate, thank you so much before.

Reply via email to