Thank you Leonel and Stifan.
Initially, I had the function in default.py and the view in the default
folder. But, this view behaved as if I didn't include the {{extend
'layout.html'}}. Then, I moved the function to a new control resource.py
and also created a new view in the resource folder. Some how this did not
work (see the screenshots I posted earlier).
But, I made a mistake in the function definition by returning the variable.
def resources_assigned():
assign_form1 = SQLFORM.grid(db.assigned, maxtextlength=150, csv=True,
details=True, editable=True, formstyle='bootstrap', paginate=100)
return assign_form1
Once I changed return assign_form1 to return locals() or return (
assign_form1=assign_form1), its all working fine.
Thank you for your time and suggestions.
Best Regards,
PT
--
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.