thank you so much villas for your share, i'll try to modify it for inserts.
best regards, steve van christie On Wed, Apr 13, 2011 at 8:43 AM, villas <villa...@gmail.com> wrote: > I use this code for updating multiple records, maybe you could use > something similar for inserts. > > ---- controller ------ > myrecords=db(query).select(db.table.ALL) > if form.accepts ... > for r in myrecords: > if request.vars.has_key('id%i_price' % r.table.id): > r.table.update_record(price=request.vars['id%i_price'% > r.table.id]) > > ----- view ------ > <table>.... > {{for record in myrecords:}} > <tr> > <td>{{=record.carprice.id}}</td> > <td><INPUT type="text", name="id{{=record.table.id}}_price", > value={{=record.table.price}}/></td> > </tr> > {{pass}} > ...</table> > > On Apr 12, 5:31 am, 黄祥 <steve.van.chris...@gmail.com> wrote: > > hi, > > > > is it possible to insert several data simultanously (bulk insert) in > > web2py using crud or sqlform? i mean, like select several image file > > and then upload it, or maybe using jquery add or remove form field > > any suggestion or reference for doing that? > > > > thank you so much