fix for bug [ 1631871 ] Multi-delete shows null for tables without ID
This commit is contained in:
parent
8dbed9f953
commit
024e35402b
|
@ -1333,7 +1333,25 @@ public final class APanel extends CPanel
|
||||||
int noOfRows = m_curTab.getRowCount();
|
int noOfRows = m_curTab.getRowCount();
|
||||||
for(int i=0; i<noOfRows; i++){
|
for(int i=0; i<noOfRows; i++){
|
||||||
StringBuffer displayValue = new StringBuffer();
|
StringBuffer displayValue = new StringBuffer();
|
||||||
|
if("".equals(m_curTab.getKeyColumnName())){
|
||||||
|
ArrayList<String> parentColumnNames = m_curTab.getParentColumnNames();
|
||||||
|
for (Iterator iter = parentColumnNames.iterator(); iter.hasNext();) {
|
||||||
|
String columnName = (String) iter.next();
|
||||||
|
GridField field = m_curTab.getField(columnName);
|
||||||
|
if(field.isLookup()){
|
||||||
|
Lookup lookup = field.getLookup();
|
||||||
|
if (lookup != null){
|
||||||
|
displayValue = displayValue.append(lookup.getDisplay(m_curTab.getValue(i,columnName))).append(" | ");
|
||||||
|
} else {
|
||||||
|
displayValue = displayValue.append(m_curTab.getValue(i,columnName)).append(" | ");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
displayValue = displayValue.append(m_curTab.getValue(i,columnName)).append(" | ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
displayValue = displayValue.append(m_curTab.getValue(i,m_curTab.getKeyColumnName()));
|
displayValue = displayValue.append(m_curTab.getValue(i,m_curTab.getKeyColumnName()));
|
||||||
|
}
|
||||||
if(m_curTab.getField("DocumentNo")!=null){
|
if(m_curTab.getField("DocumentNo")!=null){
|
||||||
displayValue = displayValue.append(" | ").append(m_curTab.getValue(i, "DocumentNo"));
|
displayValue = displayValue.append(" | ").append(m_curTab.getValue(i, "DocumentNo"));
|
||||||
}
|
}
|
||||||
|
@ -1350,6 +1368,7 @@ public final class APanel extends CPanel
|
||||||
}
|
}
|
||||||
list.setListData(data);
|
list.setListData(data);
|
||||||
|
|
||||||
|
|
||||||
list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
||||||
messagePanel.add(scrollPane);
|
messagePanel.add(scrollPane);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue