I am trying to create a new link with SQLFORM.grid to update the database 
from FALSE to TRUE.
below is what I did. How do I link it to update the db? I am not able to 
find example anywhere.

appove_links = [lambda row: A('Approve',callback=URL('approve'), 
args=('approve',row.id))]

@auth.requires(db.auth_user.is_admin==True, requires_login=True)   
def Admin_history():
     show_field = [VHistory.user_name, VHistory.out_time, 
VHistory.hours_completed]
     form = SQLFORM.grid(db.history, fields=show_field, links=appove_links)
     return dict(form=form)

-- 

--- 
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