[web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Adi
I'm still trying to resolve my problem, and desperately need someone's help :) When I try to add a new sku to a purchase order, I would like to prepopulate CPU field with the value from db.sku.cpu (determined by a dropdown).

Re: [web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Nik Go
Try this: db.po_sku.default=lambda v,r: db.sku[r.sku_id].cpu On Friday, December 16, 2011, Adi wrote: I'm still trying to resolve my problem, and desperately need someone's help :) When I try to add a new sku to a purchase order, I would like to prepopulate CPU field with the value from

Re: [web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Adi
i put it as suggested, but it didn't work... another problem is onchange', when a different value gets selected in dropdown how to pass the accompanying db.sku.cpu to db.po_sku.cpu field.

Re: [web2py] smartgrid - still not resolving a problem

2011-12-15 Thread Nik Go
Ah .. so you want it processed as soon as the drop-down is selected? That would need some Ajax magic. On Friday, December 16, 2011, Adi wrote: i put it as suggested, but it didn't work... another problem is onchange', when a different value gets selected in dropdown how to pass the