On Oct 24, 2:32 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > >>>form=SQLFORM.factory(db.table1.field1,db.table2.field2) > > Does this allow for the data to be inserted into the database?
It would not insert the data automatically but after accept you can insert it yourself with two insert statements form=SQLFORM.factory(db.table1.field1,db.table2.field2) if form.accepts(request.vars): id1=db.table1.insert(field1=form.vars.field1) db.table2.insert(field2=form.vars.field2,field3=id1) It cannot be done automatically because it is not obvious how the tables are related. > I would try it right now but busy cleaning the home :) sorry. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---