Typically, smartgrid takes a query as argument.
But what if that query is the result of a join where some fields may not be 
displayed in the smart grid?

Example:

q = ((db.t1.f1 == db.t2.f21) & (db.t2.f22 == db.t3.f3))
grid=SQLFORM.smartgrid(db.t1, constraints = dict(t1=query))
return locals()


What if we want to display in the smart gird ONLY fields of t1?

DJ 





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