Thank you! I will test now!

But in the case of JavaScript that calls a delete, event exists to delete?

For this case must deduct the value in the header ...

 

De: [email protected] [mailto:[email protected]] Em nome de ??
Enviada em: quinta-feira, 3 de outubro de 2013 10:09
Para: [email protected]
Assunto: [web2py] Re: Master / Detail with field value in the detail and
overall value in the master

 

did you mean header detail? i think you can do it with oncreate (function
run on create event) and onupdate (function run on update event). first
create oncreate and onupdate function after then call it from your grid
function. 

e.g.

def __oncreate_function(form):

            your function/query here

 

def __onupdate_function(form):

            your function/query here

 

def grid_function():

            grid = SQLFORM.grid(db.table_name, oncreate=__oncreate_function,
onupdate=__onupdate_function)

            return locals()

 

hope this can help.

 

best regards,

stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to