Web2py has several methods for calculated fields, but the documentation states that lazy fields "are not visualized by default in tables" because they don't come with attributes like _. In fact, they don't seem to be able to be available in SQLFORM.grid even if the field is requested. I get the error
AttributeError: 'FieldLazy' object has no attribute 'readable'
When I include a lazy field in the field list.
db.mytable.myfield = Field.Lazy(lambda row: "calc")
- Can I put a lazy field into a grid?
- What is the recommended way to display a grid that includes calculated fields.