Damn... I forgot the link: https://groups.google.com/forum/#!searchin/web2py/prepopulate$20form/web2py/GF2sDS7uWi8/x8SVU09CFIoJ
El jueves, 23 de enero de 2014 02:07:19 UTC+1, Jaime Sempere escribió: > > > I don't understand completely the flow of the process... do you have two > submitt buttons, one for "autocomplete" and the other for "final submit? > > I am not very sure, but here are my thoughts: What I would do is use > SQLFORM.factory something like this: > > new_post_form = SQLFORM.factory(db.posts) > if new_thread_form.process().accepted: > if (autocomplete): > Do your process, and save it in the form.vars > else: > Do the final update using db(****).update(****) > > > > > And check this topic too to return the prepolutaded form, keeping the > values that you processed after "if (autocomplete)" > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.