On Saturday, July 9, 2016 at 4:07:43 PM UTC-4, Alex Glaros wrote:
>
> sorry, forgot to state that I tried the "fields = " parm which worked, 
> but then the extra, unwanted fields were visible from the default search 
> dropdown. Am I stuck having to write a long list of ".readable = False"?
>

Yes, but it's not as hard as you think. Assuming you've already got a list 
of fields to include (which you would need to use the "fields" argument 
anyway):

[setattr(f, 'readable', False) for f in db.mytable if f.name not in 
list_of_names_to_include]
grid = SQLFORM.grid(db.mytable)

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.

Reply via email to