ButtonBarControl btnBar = new ButtonBarControl(getWorkspace());
btnBar.addButton(new ButtonBarItem("Nou registre", createActionUrl(app, cls, COMMAND_CREATE, false), Icon.ICON_IMAGE_PLUS));
btnBar.addButton(new ButtonBarItem("Refrescar", createActionUrl(app, cls, COMMAND_REPORT, false), Icon.ICON_IMAGE_REFRESH));
pc.addContent(btnBar, ContentColumns.MAIN);
GridControl grid = new GridControl(getWorkspace(), CTRL_GRID);
grid.addRowAction(new GridRowAction("", createActionUrl(app, cls, COMMAND_EDIT, true), "icon-pencil"));
grid.addRowAction(new GridRowAction("", createActionUrl(app, cls, COMMAND_DELETE, true), "icon-remove-circle"));
grid.setData(app.getConnectionId(), cls, false);
pc.addContent(grid, ContentColumns.MAIN);
}
}
catch (Exception ex)
{