I'd like to have a form to enter several filter criteria for a database 
query. After I submit the form (self-submit to the same controller), I 
would like the form to be pre-populated with the values that I just 
submitted. So the form will always show what the current filter criteria 
are.

I have tried a bit to do this with SQLFORM.factory, but can't figure out 
how to get the form fields pre-populated with the just-submitted data. I 
also looked at SQLFORM.dictform, but wasn't sure how to verify field types. 
For example, how do I get a datetime field in an SQLFORM.dictform?

Any suggestions?

Thanks,
John

-- 
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/d/optout.

Reply via email to