See http://web2py.com/books/default/chapter/29/10#Generic-views. The framework disables generic views by default, though in db.py of the scaffolding app, they are enabled on localhost only. Set response.generic_patterns to enable generic.load when needed.
Anthony On Monday, February 4, 2013 4:29:56 PM UTC-5, Nicholas Duffy wrote: > > Hello all, > I have a view that looks like this: > > *studiomaster/index.html* > {{extend 'layout.html'}} > <div id="studiochart" class="single-chart"></div> > > {{=LOAD('studiomaster', 'grid.load', ajax=True, target='grid', > content='Loading...')}} > > The grid function returns a SQLFORM.grid - after filling in the fields and > headers - like this: > *controllers/studiomaster.py* > query = db.studio_master.id > 0 > grid = SQLFORM.grid(query=query, fields=fields, headers=headers, > csv=True, paginate=10, > editable=True, user_signature=False, > showbuttontext=False) > > return dict(grid=grid) > > This works perfectly fine locally, however, when I try this on my server, > I get > invalid view (studiomaster/grid.load) > > error. > > What am I missing here? > > Thanks. > -- --- 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.