On Jul 22, 8:10 pm, Leandro - ProfessionalIT <
lsever...@gmail.com>
wrote:
> 1) In the action default/data/select/"table_name" the generated
> output is a HTML table with all records and columns of the
> "table_name". Well, if I want hide some columns
db.table.field.readable = False
> and implement a pagination in the records..Where/How I can do this ?
I do paginationclient-side using the excellent jQuery dataTables
plugin:
http://datatables.net
Previously I did it server-side based on this article:
http://99babysteps.appspot.com/how2/default/article_read/2
There are simpler examples around too (search this group for
'pagination')
> 2) How to implement a filter/search in the records in this
> action ../select/"table_name" ? for example, I developed an
> application [1] in Django (and I want migrate this application to
> Web2Py ) where I implemented this behavior, which filters the records
> of the table (and implement a pagination also).
Again, I use dataTables for this.
Previously I used an autoComplete plugin to do Search.
> 3) How to personalize the generated HTML by the CRUD, for example,
> can I assign an ID or a CSS class for the generated HTML table of
> select action ?
Unfortunately crud doesn't support doing things like:
form = crud.create(db.table, _id='myid', _class='myclass')
You need to drop down a layer to use SQLFORM for this:
form = SQLFORM(db.table, _id='myid', _class='myclass')
F