IDEMPIERE-907 Cannot report if referenced table doesn't have identifiers
This commit is contained in:
parent
e68f543903
commit
6f8c4bb5f3
|
@ -370,6 +370,9 @@ public class DataEngine
|
||||||
eSql = MLookupFactory.getLookup_TableDirEmbed(m_language, ColumnName, tableName);
|
eSql = MLookupFactory.getLookup_TableDirEmbed(m_language, ColumnName, tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Util.isEmpty(eSql)) { // No Identifier records found
|
||||||
|
eSql = lookupSQL;
|
||||||
|
}
|
||||||
// DisplayColumn
|
// DisplayColumn
|
||||||
String display = ColumnName;
|
String display = ColumnName;
|
||||||
// => (..) AS AName, Table.ID,
|
// => (..) AS AName, Table.ID,
|
||||||
|
|
|
@ -189,11 +189,14 @@ public class ReportAction implements EventListener<Event>
|
||||||
else if(event.getTarget() == chkExport)
|
else if(event.getTarget() == chkExport)
|
||||||
cboExportType.setVisible(chkExport.isChecked());
|
cboExportType.setVisible(chkExport.isChecked());
|
||||||
else if (event.getName().equals("onValidate")) {
|
else if (event.getName().equals("onValidate")) {
|
||||||
|
try {
|
||||||
validate();
|
validate();
|
||||||
|
} finally {
|
||||||
Clients.clearBusy();
|
Clients.clearBusy();
|
||||||
panel.getComponent().invalidate();
|
panel.getComponent().invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void validate()
|
private void validate()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue