Thanks! Now that I've build my own view, the "grid" variable is no longer 
displaying.

The pluralized table name is still showing, so I did some reading, and 
found that this is a special property of the smartgrid gadget 
<http://www.web2py.com/books/default/chapter/35/07/forms-and-validators#SQLFORM-grid-and-SQLFORM-smartgrid--experimental->,
 
that it *wants *to display the table name, and is able to guess the 
singular and plural names from the table name. We can specify in the 
define_table statement what we want the singular and plural to be, and when 
I specify *plural=''* then that tag stops showing. Groovy.

Is there a way to do this in the smartgrid args? For example, the headers 
argument allows one to rename field names. If not, no worries, as I will be 
using grid for most of my app so that I can send queries.

Thanks again.



On Thursday, February 19, 2015 at 11:17:32 PM UTC-5, Massimo Di Pierro 
wrote:
>
> You are using the generic.html view. That only works in development and it 
> is not a recommended policy in production. It is telling you that you have 
> a variable called grid and displaying the object.
>
> You need to make your own view and embed the grid with {{=grid}} so that 
> it won't display the name of the variable (grid).
>
>>
>>

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