String table = getTable();
setViewData("table", table);
String connName = database;
if ("true".equals(p(Constants.PAGED))) {
Paginator page = new Paginator(new TableSqlPageListSource(connName, table), params());
page.setExcludedKeys("database, database_id, table, table_id");
setViewData("paged_records", page);
return forwardTo(viewPath("paged_list"));
}
setViewData("records", Record.getRows(connName, table));