I followed the example in the radiolog-example of using jqgrid but I
am doing something wrong I suppose.
Given the following model
db.define_table("teacher",
db.person,
Field("highest_qualification"),
Field("id_number",length=13),
Field("school"),
Field("gender"),
Field("cell", "string", length=15, default=None),
Field("grade"),
Field("domain")
)
#db.teacher.id.represent = lambda id:
SPAN(A('edit',_href=URL(r=request,c='default',f='edit_teacher',args=id)))
db.teacher.grade.requires=IS_IN_SET(grades,multiple=True)
db.teacher.grade.widget = horizontal_grade_checkbox
When I uncomment the 'represent' line the grid is empty. Why?
How do I get an 'edit' link in the id-cell in the grid?
Regards
Johann
--
"Be not deceived; God is not mocked: for whatsoever a
man soweth, that shall he also reap."
Galatians 6:7