thanks. that works albeit a bit esoteric.
On Jun 17, 12:03 am, Anthony wrote:
> Maybe try:
>
> form.vars.id = table.insert(**table._filter_fields(form.vars))
>
> The _filter_fields method should pull out only the dict keys that are fields
> in the table.
> Seehttp://web2py.com/book/default/chap
Maybe try:
form.vars.id = table.insert(**table._filter_fields(form.vars))
The _filter_fields method should pull out only the dict keys that are fields
in the table. See
http://web2py.com/book/default/chapter/07#One-form-for-multiple-tables for
an example of this.
Anthony
On Thursday, Ju
2 matches
Mail list logo