IDEMPIERE-2152 Info Window - Join related tabs on other columns than primary key / fix test case failed: add a process to Product Info with viewID Column=On Hand Qty - when warehouse is not selected the column QtyOnHand does not exists

This commit is contained in:
Carlos Ruiz 2015-08-25 10:35:05 -05:00
parent 0499db9234
commit 59acc19449
1 changed files with 9 additions and 5 deletions

View File

@ -695,12 +695,16 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
MInfoColumn infoColumnAppend = (MInfoColumn) modelHasInfoColumn.getAD_InfoColumn(); MInfoColumn infoColumnAppend = (MInfoColumn) modelHasInfoColumn.getAD_InfoColumn();
//TODO: improve read data to get data by data type of column. //TODO: improve read data to get data by data type of column.
String appendData = rs.getString(infoColumnAppend.getColumnName()); String appendData = null;
if (rs.wasNull()) { try {
data.add(null); appendData = rs.getString(infoColumnAppend.getColumnName());
} else { } catch (SQLException e) {
data.add(appendData); appendData = null;
} }
if (rs.wasNull()) {
appendData = null;
}
data.add(appendData);
// when need update append column index, just update it. // when need update append column index, just update it.
if (isMustUpdateColumnIndex && !columnDataIndex.containsKey(modelHasInfoColumn.getInfoColumnID())){ if (isMustUpdateColumnIndex && !columnDataIndex.containsKey(modelHasInfoColumn.getInfoColumnID())){