massimo-di-pierros-macbook:web2py_jeeva mdipierro$ python web2py.py -S welcome ... >>> help(SQLTABLE) class SQLTABLE(gluon.html.TABLE) | given a SQLRows object, as returned by a db().select(), generates | an html table with the rows. | | optional arguments: | | :param linkto: URL (or lambda to generate a URL) to edit individual records | :param upload: URL to download uploaded files | :param orderby: Add an orderby link to column headers. | :param headers: dictionary of headers to headers redefinions
example SQLTABLE(rows,headers = {'table.field':'Label Field', ....}) On Jan 21, 7:36 am, Johann Spies <johann.sp...@gmail.com> wrote: > I would like the table produced by SQLTABLE to have different column > labels (e.g. "Name" for "db.person.name"). How do I do it? > > Also: I would like the output of SQLTABLE to provide links to > individual records simliar to what appadmin does. I could not fully > understand the code appadmin uses to achieve this. > > Can linkto be used in this case? From what I understand from te book > linkto is a SQLFORM method and is not related to SQLTABLE. > > Regards > Johann
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.