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