I have a contact table that includes our employees too. To make a difference I have a cclass field to make the difference. When I want to create an employee the user should not have a choice to set the cclass field, but when he is creating a customer or supplier.
So I tried in SQLFORM.grid the oncreate callback with this function:
def setEmployeeClass(form):
form.vars.cclass = 2
But this doesn't work. Has someone a tip?
--

