Maybe you've already found a way but here's for others who stumbled upon 
this thread from search. lol

I believe this should be the way

db.define_table('employee',
Field('name','string'),
Field('department','string')
)

inside the controller,

def do_something(form):
name = form.vars.name
department = form.vars.department

def employee_records():
grid = SQLFORM.grid(db.employee,oncreate=do_something)
return dict(grid=grid)

On Thursday, 1 March 2012 23:31:16 UTC+8, Tito Garrido wrote:
>
> Hey Folks,
>
> I have been reading the grid and smartgrid section of the book and I am 
> missing some examples on each parameter...
>
> Does anybody has examples of oncreate, onupdate and ondelete?
>
> Thanks!
>
> Tito
>
> -- 
>
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
>

-- 



Reply via email to