You can add your own buttons using:
links = [lambda row: A('Edit',_href=URL("controller","edit",
args=["update", tablename, a.id]))
and set editable, deletable, details to False.
Along with the question of Johann, you can add new buttons to the grid
/ SmartGrid, because the links are render as links, and not as
buttons.
Thanks
is it possible to remove some of the related tables' buttons?
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1890 / Virus Database: 2109/4693 - Release Date: 12/20/11
--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
def view(table,id):return dict()