If I understand, you can already what you suggest. db.define_table('t',SQLField('a')) form=SQLFORM(db.t)
in view: <form> <input name="a" value="{{=form.latest.a}}" /> {{if form.errors.a:}} {{=form.errors.a}}{{pass}} <input type="submit" > </form> On Nov 26, 7:10 am, mmstud <[EMAIL PROTECTED]> wrote: > Do you think it would be possible and not too much work to do such a > form checker, that takes field names like: > > <input name="db1.table1.field1" /> > <input name="db1.table1.field2" /> > <input name="db1.table2.field1" /> > <input name="db2.table1.field1" /> > > and does automatic value population, submit validation, perhaps even > insert/update with those fields? Is there somekind of connection pool, > that could be used to pass to form creator having all db connections > to be iterated, if wanted? > > Another thing came to my mind, when i have to create more complicated > form layout. It could be more easier to make layout manually designing > layout and put only form controller (field) template markers, perhaps > error markers also there. Then i could do something like: > > f = Form(form_definitions = {}, template = 'form.tpl') > f.xml() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---