I'll give it a try thanks

On 16 mar, 02:46, DenesL <denes1...@yahoo.ca> wrote:
> Something like this:
>
> def names30():
>   import copy
>   n=db.person.name
>   ff=[]
>   for i in range(0,30):
>     nn=copy.copy(n)
>     nn.name='%s%02i' %(nn.name,i)
>     ff.append(nn)
>   form=SQLFORM.factory(*ff)
>   if form.accepts(request.vars, session, dbio=False):
>     for v in form.vars.values():
>       if v: # db insert goes here
>         db.person.insert(name=v)
>   elif form.errors:
>      response.flash='oops'
>   return dict(form=form)
>
> On Mar 15, 7:26 pm, JmiXIII <sylvn.p...@gmail.com> wrote:
>
> > Hello,
>
> > I need to key around 30 value for a single field at regular times.
> > Using a loop form in a view doesn't fit this purpose as I will have to
> > submit every form.
> > I'd prefer a kind a tabular and a single submit button that would save
> > the 30 values in the database.
>
> > Can somebody give me a clue on the way to achive this ?
>
>

Reply via email to