Re: [web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-22 Thread Anthony
On Friday, October 19, 2018 at 9:38:04 AM UTC-4, sandeep patel wrote: > > Try this > def index(): > form=SQLFORM(db.vehicleLogging) > if form.process().accepted: > response.flash = T("Record Made") > elif form.errors: > response.flash = T('Error') > return locals()

Re: [web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-20 Thread mostwanted
Thanks On Friday, October 19, 2018 at 3:38:04 PM UTC+2, sandeep patel wrote: > > Try this > def index(): > form=SQLFORM(db.vehicleLogging) > if form.process().accepted: > response.flash = T("Record Made") > elif form.errors: > response.flash = T('Error') > return

Re: [web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-19 Thread sandeep patel
Try this def index(): form=SQLFORM(db.vehicleLogging) if form.process().accepted: response.flash = T("Record Made") elif form.errors: response.flash = T('Error') return locals() In *form.process().**accepted *does not need request.vars and session arguments. Best/

[web2py] My SQLFORM() is not saving anything after putting my APP online

2018-10-19 Thread mostwanted
Before taking my application online i was able to save information via my SQLFORM(db.logs) but after putting it online It does not save anything! *This is the controller code:* def index(): form=SQLFORM(db.vehicleLogging) if form.accepts(request.vars, session): response.flash =