On Tuesday, November 18, 2014 11:42:35 AM UTC-5, Alex Glaros wrote: > > in grid, can fields argument name virtual fields? >
Have you tried it? Sometimes its easier to just try something then to post a question about it. ;-) Anyway, this is covered in the book: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Virtual-fields-in-SQLFORM-grid-and-smartgrid > I ask because am seeking granular control over column order. If all > "links" through the placement argument are on "left", then table fields > column order cannot intermingle with links fields....it's all or nothing. > But if fields argument can use virtual fields, then granular control over > column order is possible regardless of whether it's a table or virtual > field. > > Otherwise, the only option for granular control is to make all columns > including table fields, links, thereby losing the built-in grid column sort > capacity. > In either case, you won't be able to sort (i.e., you can't sort on virtual fields because sorting is done by the database). If you need to sort on a calculated field, you're better off using a computed 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.