will dig into that. THanks
dan On Jun 10, 3:04 pm, mdipierro <[email protected]> wrote: > You cannot. Perhaps you should use crud.create(....,onvalidator=lambda > form:....) if you need more complex computations. > > On Jun 10, 2:02 pm, greenpoise <[email protected]> wrote: > > > Ok. I got this working afterall. I am going to leave it open because I > > still have questions regarding it. Like for example, this is what I > > did: > > > db.orden.sellercommision.compute=lambda r:round(float(r['coef1'])- > > float(r['coef1'])*float(r['value2']),2) > > > But what if I needed the db.orden.sellercommission result in another > > compute statement?? > > > It prompts me an error if I do so because the value is just not there. > > > thanks > > > Dan > > > On Jun 10, 11:44 am, mdipierro <[email protected]> wrote: > > > > compute is the way. Show us how you are doing it and the error and we > > > can tell you how to fix it. > > > > On Jun 10, 10:03 am, greenpoise <[email protected]> wrote: > > > > > I see in the book how to compute values from fields within a form. I > > > > still dont get how to do this under CRUD. I am able to compute values > > > > using the compute function but if I have a value that depends on the > > > > sum of other field I get an error. Can someone show me how to do > > > > this? > > > > > Thanks

