IDEMPIERE-907 Cannot report if referenced table doesn't have identifiers

This commit is contained in:
Carlos Ruiz 2013-05-03 13:01:58 -05:00
parent e68f543903
commit 6f8c4bb5f3
2 changed files with 9 additions and 3 deletions

View File

@ -370,6 +370,9 @@ public class DataEngine
eSql = MLookupFactory.getLookup_TableDirEmbed(m_language, ColumnName, tableName);
}
if (Util.isEmpty(eSql)) { // No Identifier records found
eSql = lookupSQL;
}
// DisplayColumn
String display = ColumnName;
// => (..) AS AName, Table.ID,

View File

@ -189,9 +189,12 @@ public class ReportAction implements EventListener<Event>
else if(event.getTarget() == chkExport)
cboExportType.setVisible(chkExport.isChecked());
else if (event.getName().equals("onValidate")) {
validate();
Clients.clearBusy();
panel.getComponent().invalidate();
try {
validate();
} finally {
Clients.clearBusy();
panel.getComponent().invalidate();
}
}
}