Re: [web2py] Re: SQLFORM.factory without a database table

2014-02-18 Thread Marty McCasland
Was aiming to create a grid. Just used an in-memory SQLite db to achieve the grid. Works great. Sent from my iPad > On Feb 18, 2014, at 3:14 PM, Richard Vézina > wrote: > > Don't understand your question... It generate a self validating form base on > field validator defined in models if

Re: [web2py] Re: SQLFORM.factory without a database table

2014-02-18 Thread Richard Vézina
Don't understand your question... It generate a self validating form base on field validator defined in models if you clone you field from there or the Field() if you create field input on the fly... Do you want a form? or a Grid? If the latter there the TABLE() helper... Richard On Tue, Feb

Re: [web2py] Re: SQLFORM.factory without a database table

2014-02-14 Thread Richard Vézina
To insert/update record with .factory() you can do something like that : if form.process().accepted: if condition when update mode is not meat: id = db.underlying_table.insert(field1=form.vars.field1, ...) # You keep the id in cas you need it to insert some information in another tabl