On Thursday, July 24, 2014 6:12:43 PM UTC-7, Anthony wrote:def myfunction():
if request.post_vars._autocomplete_name_aux and not request.post_vars.
category:
request.post_vars.category = db.category.insert(name=request.
post_vars._autocomplete_name_aux)
return dict(form=SQLFORM(db.article).process())
I was under the impression that request.post_vars._autocomplete_name_aux
was to be returned if the fields input was not found in the db, however on
second look I see that the "name" value of that string is actually the
fields name and it can indeed work for multiple inputs! I will go this
route. Thank you for making me take a second look! I really hope to get a
good grasp on the innerworkings of web2py so I can start using it to its
full potential.
--
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.