I think you should be able to do what you ask but it would help to see your define_table and controller method.
On Dec 12, 10:02 am, zhaopeng <zhaopen...@gmail.com> wrote: > Hello everybody, > I display some fields of a table use SQLFORM to view.when i get the > request data from SQLFORM, I add some vars to request.vars,then add > the data to db by form.accepts(request.vars,session),but i found the > vars i added in db is None.so i must use db.table.insert() to add the > data to db.Is there any way i can add data to db by form.accepts()? > > thanks a lot. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---