Here is an example of a SET named "purchased" from the 
documentation<http://www.web2py.com/examples/default/examples>
:

purchased = \n    (db.person.id==db.purchase.buyer_id)&\n    
(db.product.id==db.purchase.product_id)

Can Smartgrid use the SET "purchased" instead of a table, e.g., as in the 
example below (instead of tables "person", "product", "purchase)?

def manage_transactions():
    grid = SQLFORM 
<http://www.web2py.com/examples/global/vars/SQLFORM>.smartgrid(db.person,linked_tables=['product','purchase'],
                             user_signature=False)
    return dict(grid=grid)

What would the syntax look like?

Thanks,

Alex Glaros


-- 



Reply via email to