This is probably a beyond-simple problem but I can't figure it out.
var = request.args(0)
query=db.consumer.lname
grid = ''
form = FORM("Last Name: ",INPUT(_name='lname'),INPUT(_type='submit'))
if form.accepts(request.vars, session):
query=(db.consumer.lname=???)
grid = SQLFORM.grid(query,...)
...
return dict(form=form, grid=grid)
So my question is, how do I form the query so I can use the form input to
search against the DB? I apologize if this has (most likely been) answered
already. Thank you.
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.