On Friday, November 9, 2018 at 11:13:51 AM UTC-5, Yann Dulondel wrote: > > Seem to be in the header had put bulk_id instead of articles.bulk_id. > But i still have two issues > > - First when i click on header column bulk_id the order the column > change > > If you don't want the grid to be sortable, you can do SQLFORM.grid(..., sortable=False). Note, that will disable sorting on all of the columns. To disable sorting on just a single column, you would have to use the server-side DOM to manually remove the anchor tag from the specific column heading.
> > - In the list is displayed the name of the record and his id > > The display is controlled by the "represent" attribute of the field. If this field is a "reference" field, its default "represent" attribute is based on the "format" attribute of the referenced table. So, you can either specify an explicit "represent" attribute for the Bulkhead field to override its default, or change the "format" attribute of the referenced table (assuming this is a reference field). Anthony -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

