db.study_data.taxon.default = request.get_vars.tax_species
However, could i do something like?
grid.search.default = request.get_vars.tax_species
Hello allIs there a way to pre populate the 'search field' of the SQLFORM.grid?
grid = SQLFORM.grid(db.mytable)
search_input = grid.element('#w2p_keywords')
if search_input:
search_input['_value'] = 'My keywords'--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/yohSjabLPCE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--