And that did, thank you.
On Tuesday, December 31, 2013 6:10:02 AM UTC-6, Niphlod wrote:
>
> use form.vars holds a dict with the values matched with the _name keys, so
> something like form.vars.lname should definitely work
>
> On Tuesday, December 31, 2013 11:10:00 AM UTC+1, Keith Planer wrote:
>>
>> 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.