@Override
public Options getFieldOptions(DBColumn column)
{
if (column.equals(T.C_DEPARTMENT_ID)) {
SampleDB db = (SampleDB)getDatabase();
DBCommand cmd = db.createCommand();
cmd.select(db.T_DEPARTMENTS.C_DEPARTMENT_ID);
cmd.select(db.T_DEPARTMENTS.C_NAME);
return db.queryOptionList(cmd, context.getConnection());
}
// base class implementation
return super.getFieldOptions(column);
}