I'm guessing this is not a complete model since there is no supplier table defined (reference in purchase_header) For the point of making progress, perhaps you can temporarily remove that reference and make sure that you get the two-table smart grid working (there shouldn't be any need to specify the linked table)
On Friday, 7 February 2014 00:25:49 UTC+11, 黄祥 wrote: > > trying another tables using smartgrid and have the same result. > trying to add the auth signature but have the same result. > trying to create the apps from scratch (copy the models, controllers and > views folders) but have the same result. > *code* > *controllers/report.py* > def report_product(): > product_detail = ['purchase_detail'] > grid = SQLFORM.smartgrid(db.product) > return locals() > > def report_supplier(): > supplier_detail = ['purchase_header'] > grid = SQLFORM.smartgrid(db.supplier) > return locals() > > any idea how to fix it? > > thanks and best regards, > stifan > -- 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/groups/opt_out.