I think you're going to run into problems in Web2py since even if you use
Custom Forms (http://web2py.com/books/default/chapter/29/7#Custom-forms)
you're going to have two conflicting security keys (hidden fields to
prevent CSRF attacks).
If you're able to paint the form correctly in the view,
why not using SQLFORM.factory for having one form for all the data ?
in the controller logic, then, something like
for f in form.vars.multiple_field:
db.mysqltable.validate_and_insert(foo=form.vars.foo,
bar=form.vars.bar, uniquefield=f)
should do the job.
With no example model suppl
I think you're going to have some trouble with this. Your best bet is
to go with SQLFORM.factory. problem is, you lose your nice CRUD
functionality. But it gives you complete control.
Another approach, the one that I use, is to hide the various forms
behind accordion folds. That way, you only have
> Another approach, the one that I use, is to hide the various forms
> behind accordion folds.
Or on different tabs.
In either case, update the fields on the tab or fold being closed to
avoid losing input.
You can use ajax for this.
On Mar 21, 12:16 am, weheh wrote:
> I think you're going to
Thanks, Niphlod & pbreit. Still learning, and asking questions is how I
do it. I'll work on your suggestions f
FYI, Niphlod - this is the same app as in the other thread.
On 3/20/2012 5:38 PM, Niphlod wrote:
why not using SQLFORM.factory for having one form for all the data ?
in the control
5 matches
Mail list logo