Re: [web2py] Update on multiple tables with one form

2013-01-29 Thread Anthony
On Tuesday, January 29, 2013 10:36:39 AM UTC-5, Richard wrote: > And what about .as_dict()? > > record = select_something.as_dict() > Actually, you wouldn't need to use .as_dict() if you already have a Row object -- you can submit that directly as the record. The problem is that if the Row obje

Re: [web2py] Update on multiple tables with one form

2013-01-29 Thread Richard Vézina
And what about .as_dict()? record = select_something.as_dict() ? Richard On Tue, Jan 29, 2013 at 9:28 AM, Angelo Compagnucci < angelo.compagnu...@gmail.com> wrote: > Thanks Antony, > > I think the previous solution is the most simple and clean way to make > multiple updates on Web2py and work

Re: [web2py] Update on multiple tables with one form

2013-01-29 Thread Angelo Compagnucci
Thanks Antony, I think the previous solution is the most simple and clean way to make multiple updates on Web2py and worked wonderfully. Anyway, thank you for your intrest! 2013/1/29 Anthony > On Tuesday, January 29, 2013 4:40:04 AM UTC-5, AngeloC wrote: > >> Hi Steve, >> >> Great suggestion,

Re: [web2py] Update on multiple tables with one form

2013-01-29 Thread Anthony
On Tuesday, January 29, 2013 4:40:04 AM UTC-5, AngeloC wrote: > Hi Steve, > > Great suggestion, but the problem remains. How can I update a record that > I cannot select? > > The SQLFORM.factory way cannot permits to select a record to prepopulate > the forms, so you only can insert, but not upd

[web2py] Update on multiple tables with one form

2013-01-29 Thread Angelo Compagnucci
Hi guys, I'm looking for a clean way to make an update on mutiple tables with only one form and cannot find anything clean/simple searching the mailing list. Tables could be related (in parent-child relation) or not related at all. I'm missing something or there is no easy way to do that? Thank