Hi Anthony, thanks for your answer.

We are using (besides web2py) the php yii2 framework. Yii2 has this functionality specifying custom functions for sorting and filtering of fields in grids (http://www.yiiframework.com/wiki/621/filter-sort-by-calculated-related-fields-in-gridview-yii-2-0/). Will be very difficult to implement something like this in web2py?

I am asking because the web2py source code sometimes overwhelmed me, the grid is just a function with around 917 code lines and is a little difficult to understand for me.

Greetings.

El 24/02/17 a las 23:18, Anthony escribió:
On Friday, February 24, 2017 at 1:04:45 PM UTC-5, Carlos Cesar Caballero wrote:

    Hi, how can I make a virtual field searchable and sortable in the
    grid?


This cannot be done, as virtual fields are calculated after the records have been selected from the database.

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] <mailto:[email protected]>. For more options, visit *MailScanner ha detectado un intento de fraude en la siguiente p�gina web "groups.google.com". /No/ conf�e en esta p�gina web:* https://groups.google.com/d/optout <https://groups.google.com/d/optout>.

--
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.

Reply via email to