Re: [web2py] Call a javascript function from SQLFORM.smartgrid

2017-03-24 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear Nico. Thank you for you answer. I use a sqlform.smart grid for show records from database, i want to do a call Restful for show especific record clicked using ajax My problem is i not know how i implement onclick function on sqlform.smart grid Regards On Friday, March 24, 2017 6:20 AM,

[web2py] Call a javascript function from SQLFORM.smartgrid

2017-03-24 Thread Nico de Groot
A client-side javascript function can't be triggered by a link. You can define a onclick attribute containing a call to a javascript function. If you want to use a row id as a parameter you have to make it available as a data attribute. It's not clear what you want and why. Maybe you have to gr

[web2py] Call a javascript function from SQLFORM.smartgrid

2017-03-18 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear All. How a i can call a javascript function from a link of sqlform.grid My controller:   d=datetime.datetime.strptime(request.vars.desde, "%d/%m/%Y %H:%M:%S") \    if request.vars.desde else datetime.datetime.strptime(datetime.datetime.strftime(datetime.datetime.now(),'%Y-%m-%d 00:00:00'),