db.clients.add_date.writeable=False
##db.clients.add_date.readable=True
##db.clients.add_date.writeable=False
##db.history.editable = False,
##db.history.editable=False,
grid=SQLFORM.smartgrid(db.clients, onupdate=updateclient,oncreate=createclient, user_signature=False, editable = dict(clients=True, history=False), deletable = dict(clients=True, history=False), create = dict(clients=True, history=False),fields=[db.clients.client_name,db.clients.line_of_business,db.contacts.id_contact_type,db.contacts.contact_name, db.history.client_id_dc,db.history.add_date, db.history.encryption_type,db.history.out_filename])
return locals()