Hi Sverre, I have a cms application in which I use dataTables. In the view I have something like:
<td> {{=A('update/delete',_onmouseover="this.style.cursor='pointer';", _href=URL(r=request,f='update_nfa',args=[record.nfa.id]))}} </td> ... and in the corresponding function: auth.requires_membership('site_manager') def update_nfa(): response.view='default/update_form.html' record=db.nfa[request.args[0]] if not record or not record.company==auth.user.company: redirect(URL(r=request,f='crud_nfa')) form=update_form(db.nfa,record,'crud_nfa',message='Nfa updated',deletable=True) return dict(form=form) ... where update_form(...) is a function that performs the actual update: def update_form(table,record,next,message,deletable): form=crud.update(table,record,next=(URL(r=request,f=next)),message=message,deletable=deletable) form[0][-1] [1].append(INPUT(_type="button",_value="Cancel",_onclick="javascript:history.go(-1)")) return form I hope you get the idea. Kind regards, Annet.