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()
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
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/
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 =
4 matches
Mail list logo