when I changed the table definition to db.define_table( 'location', Field('name' ), Field('category_id', 'reference category'), Field('company_id', 'reference company' ,label = 'Owner id '), Field('user_id', 'reference auth_user',writable = False , readable = True), Field('dept_id', 'reference dept', writable = False , readable = True )) db.location.name.requires =IS_NOT_EMPTY() db.location.category_id.requires =IS_NOT_EMPTY() db.location.company_id.requires =IS_NOT_EMPTY() db.location.user_id.requires =IS_NOT_EMPTY() db.location.dept_id.requires =IS_NOT_EMPTY()
It works fine..... I think that it needs to explored... Thanks .... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.