Re: [web2py] how to create a view for grid view, edit, delete buttons?
good to know Johann have any examples or links to simple examples? thanks, Alex -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] how to create a view for grid view, edit, delete buttons?
On 10 November 2014 10:17, Alex Glaros alexgla...@gmail.com wrote: good to know Johann have any examples or links to simple examples? links = lambda row: (A(B(T('Edit')), _target = _blank, _href = URL(r = request, c = 'authors', f = 'edit_author', vars = dict(auid = str(row[ db.akb_authors.id])] -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] how to create a view for grid view, edit, delete buttons?
Apologies sent before finished. On 10 November 2014 10:17, Alex Glaros alexgla...@gmail.com wrote: good to know Johann have any examples or links to simple examples? links = lambda row: (A(B(T('Edit')), _target = _blank, _href = URL(r = request, c = 'authors', f = 'edit_author', vars = dict(auid = str(row[ db.akb_authors.id])] wys = SQLFORM.grid(query, fields = fields, editable = False, deletable= False, links = links, create = False, details = False, paginate = 1000, csv = False, maxtextlength = 90, orderby = db.akb_authors.surname| db.akb_authors.firstname And then in edit_author you I use SQLFORM.factory. There you can specify which fields are to be shown in the form. Hope this helps. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] how to create a view for grid view, edit, delete buttons?
On 10 November 2014 08:57, Alex Glaros alexgla...@gmail.com wrote: grid offers view, edit, and delete buttons for each row is there a way to create an HTML view for the resulting page when user clicks on those buttons? Normally the result is an unadorned raw form. And for some reason, I get fields that were intentionally hidden in the main view of the grid, but now appear; fields such as email address in auth_user table. To avoid this I normally define my own 'edit' or 'view' functions and use 'links' in stead of the standard edit and view buttons. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.