// Seg�n el comando, realiza una acci�n. Si no hay comando, muestra el grid
if (HttpRequestUtils.getValue(request, PARAMETER_COMMAND, "").equals(COMMAND_CREATE))
{
FormControl form = new FormControl(getWorkspace(), app.getId());
form.addGroup(cls);
form.addHiddenValue(new FormFieldHidden(PARAMETER_APPID, HttpRequestUtils.getValue(request, PARAMETER_APPID)));
form.addHiddenValue(new FormFieldHidden(PARAMETER_COMMAND, HttpRequestUtils.getValue(request, PARAMETER_COMMAND)));
pc.addContent(form, ContentColumns.MAIN);
}
else if (HttpRequestUtils.getValue(request, PARAMETER_COMMAND, "").equals(COMMAND_EDIT))
{
Object instance = OrmFactory.getObjectFromRequest(cls, request);
OrmFactory ormp = new OrmFactory(app.getConnectionId(), getWorkspace());
instance = ormp.get(instance);
FormControl form = new FormControl(getWorkspace(), app.getId());
form.addGroup(instance);
form.addHiddenValue(new FormFieldHidden(PARAMETER_APPID, HttpRequestUtils.getValue(request, PARAMETER_APPID)));
form.addHiddenValue(new FormFieldHidden(PARAMETER_COMMAND, HttpRequestUtils.getValue(request, PARAMETER_COMMAND)));
pc.addContent(form, ContentColumns.MAIN);
}
else
{
// Muestra el GRID de la aplicaci�n