in your controller.. if request.args(0) == "view": db.table.field.readable = True
grid = SQLFORM.grid(.....) http://zerp.ly/rochacbruno Em 14/08/2012 09:37, "Mandar Vaze" <mandarv...@gmail.com> escreveu: > I have a few fields that have "compute" attribute defined. I've only > inserted the records via script - compute fields are updated correctly. > > I have a SQLFORM.grid which shows a "join" query. When I explicitly select > the computed field in the "fields" param - it is shown correctly. > But when I click the "View" or "Edit" button for that record, the computed > field does NOT show up. (Same when I try to update the record via appadmin) > > I expect the computed field to definitely show up in the "View" form, and > as "read-only" field in the "Edit" form. > > Why do the computed fields NOT show up in SQLFORM ? > > -- > > > > --