Re: [web2py] Re: create new record and update status simultaneously

2011-04-22 Thread Stifan Kristi
hi, anthony, thank you so much for your kind attention, problem solved now def __add_2(table): form = crud.create(table, next = URL(request.application, request.controller, index_link),

Re: [web2py] Re: create new record and update status simultaneously

2011-04-22 Thread Anthony
On Friday, April 22, 2011 2:46:44 AM UTC-4, 黄祥 wrote: > > thank you so much for your pointer, bruno, it seems onaccept, can't receive > request.vars that been passed during form submit, because when i tried to > replace the request.vars into the value id (1, 2, etc), no errors occured. > did an

Re: [web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Stifan Kristi
thank you so much for your pointer, bruno, it seems onaccept, can't receive request.vars that been passed during form submit, because when i tried to replace the request.vars into the value id (1, 2, etc), no errors occured. did anyone have meet the same problem? thank you very much before On Fri

Re: [web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Bruno Rocha
You can try to set default before the creation of the form, something like: db.booking.status.default="Booked" form = crud.create(db.booking) -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Fri, Apr 22, 2011 at 2:24 AM, Stifan Kristi wrote: > a, i c, thank you so much for your poi

Re: [web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Stifan Kristi
a, i c, thank you so much for your pointer anthony, is there any others way to that without using update() or update_record()? thank you very much On Fri, Apr 22, 2011 at 1:33 AM, Anthony wrote: > I think onaccept has to be a function. > > On Thursday, April 21, 2011 1:12:24 PM UTC-4, 黄祥 wrote:

[web2py] Re: create new record and update status simultaneously

2011-04-21 Thread Anthony
I think onaccept has to be a function. On Thursday, April 21, 2011 1:12:24 PM UTC-4, 黄祥 wrote: > hi, > > is it possible to create new record and update status simultaneously? > e.g. update() > def __add_2(): > form = crud.create(db.booking, next = URL(request.application, > request.contr