You can have mutliple forms in a page but you need to give names to
forms

form1=FORM(...)
form2=FORM(...)
if form1.accepts(request.vars,session,formname='form1'): pass
if form2.accepts(request.vars,session,formname='form2'): pass

Massimo

On Dec 19, 11:49 am, Iceberg <iceb...@21cn.com> wrote:
> On Dec20, 12:05am, fja <franklin.al...@gmail.com> wrote:
>
>
>
> > Hello, is there a way to edit multiple records at once in a form?
>
> > Say you have a table
>
> > StudentName (string)
> > Term1 (string)
> > Term2 (string)
>
> > I would like to have a form similar to this.
>
> > Student Name         Grade Term 1       Grade Term2
> > Roger                                  A                       __
> > Cindy                                  B                       __
>
> > [Submit]
>
> > I would like to be able to enter the grades for term 2 in one go (like
> > an Excel Sheet) and press submit to have it stored in the db.
>
> > Thank you
>
> I do not know an elegant way to do that.
> But I just want to say, whatever trick you choose, do not try to use
> more than one form in one page. I tried but did not work, probably due
> to some builtin form id checking function to avoid multi-submit.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to