>
> Is it possible to get the display_name (virtual field) to appear/behave as 
> a 'normal' field in the grid?
>

No. Searching and sorting are handled via database queries, and the virtual 
field values are not stored in the database but are calculated in Python 
*after* records are fetched from the database.

The simplest alternative might be to use a computed field. Alternatively, 
you could further develop your approach of adapting the db.task.person 
field for your purposes. For that to work, you would have to implement 
custom search functionality (the "searchable" argument can be a function 
that generates a custom search query, and the "search_widget" argument can 
be a custom search widget for the UI). If you want proper sorting, you 
would also have to intercept sorting requests and override with a custom 
"orderby" argument.

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.

Reply via email to