Hello, New to this so please bare with me.
I am trying to call show_form() inside my tracker_form view below is my functions inside default.py. how do I call show_form() with my sql inside tracker_form view so I can see my results as soon as I submit the form? The view is: tracker_form 1 2 3 4 5 6 7 8 9 10 {{extend 'layout.html'}} <h4><center>Tracking</center></h4> {{=form}} {{=BEAUTIFY(request.vars)}} <h4> <a href = "http://127.0.0.1:8000/WnD/default/show_form">Show Records</a> -- this is a link to show_form() </h4> def index(): return dict() def tracker_form(): record = db.content(request.args(0)) show_record = request.args(0) form = SQLFORM(db.content, record) if form.process().accepted: response.flash = 'Submitted Successfully!' response.view = 'http://127.0.0.1:8000/WnD/default/show_form' #show_form function here! elif form.errors: response.flash = 'Form is not correct' else: response.flash = 'Please fill out the damn form' return dict(form=form) def show_form(results): #rows = db().select(db.content.ALL) return dict(grid=SQLFORM.grid(db.content)) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.