On Feb 14, 3:01 pm, selecta <[email protected]> wrote: > Ah no that won't work since the extra elements are in a different HTML > table. > I really need > > form starts > table with data and switches (custom) > inner sqlfom here ({{=form}} without start and close) > form close
Maybe what you really need is a FORM.factory - Mix in parts with parts from a table; You can do all the checking you want on what shows in the form from your controller, and just keep a simple view. If you need to manually validate / manipulate after input, you can do this in the controller also: form.accepts(..... dbio=False), then make whatever logic you need, update whatever controller modified (potentially) field updates you need. If you have more esoteric needs than that - e.g. changing the input values, validating on a stack of validations, etc. (I recently did for email copy/paste batch registration on PyCon), you can create a memory database table, with all the fileds exactly as you want them, i.e. with all the form validation, comments, labels, etc. - and then apply to whatever table / tables / fields you want that are persistent after the accepts. Hope this will give you some useful insight. Regards, Yarko p.s. - I have not been watching this much the past few months, so I may not be aware of all the new features / changes, but basically this should still all be good advice ---- don't try to do more than "layout" / look & feel logic in your view. > > On Feb 14, 9:44 pm, villas <[email protected]> wrote: > > > Hi selecta > > > Maybe you mean manually adding an element like this: > > > form[0].insert(TR(...), _id='inserted_table_row') -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. 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.

