In my model I have:
         db.customerfile.filename.represent= lambda filename, row: \
                    A(filename, _href=URL('download', args=row.file))
         db.customerfile.file.readable=False
         db.customerfile.file.writable=False

In a SQLFORM this shows the filename as a link which opens the file.

I would like a grid to similarly display just the filename with a link
to open the file. However the "represent" only works if you have both
the file and filename fields included in the grid.

Is there a way to just display the filename? Why does the grid display
fields with "readable=False"?

Reply via email to