[web2py] Re: Pre-populating a form with SQLFORM.factory

2013-02-11 Thread Tom Hines
ry( Field(...), Field(...), ..., record=record, showid=False ) On Monday, February 11, 2013 1:38:01 PM UTC-5, Massimo Di Pierro wrote: > > form=SQLFORM.factory( > Field(...), > Field(...)).process(keepvalues=True) > > On Monday, 11 February 2013 10:56:54 UTC-6, Tom Hines wrote: >&g

[web2py] Pre-populating a form with SQLFORM.factory

2013-02-11 Thread Tom Hines
Hello. I want to use SQLFORM.factory() and pre-populate a form with values from the last form use. Kind of like an update form. It works some of the time, but I'm getting a lot of KeyError: 'id' exceptions. There is no 'id' field. Using web2py version 2.3.2. Thanks for any help. Example: