IDEMPIERE-753 Clicking "Zoom" in line total, in the form "Posting" / Based on Richard Morales patch

This commit is contained in:
Carlos Ruiz 2013-03-16 18:37:29 -05:00
parent c45dfd9557
commit fe28feef36
1 changed files with 8 additions and 4 deletions

View File

@ -1298,10 +1298,14 @@ public class WAcctViewer extends Window implements EventListener<Event>
int tableIdColumn = m_rmodel.getColumnIndex("AD_Table_ID");
int recordIdColumn = m_rmodel.getColumnIndex("Record_ID");
ListModelTable model = (ListModelTable) table.getListModel();
int AD_Table_ID = ((KeyNamePair) model.getDataAt(selected, tableIdColumn)).getKey();
int Record_ID = ((Integer) model.getDataAt(selected, recordIdColumn)).intValue();
AEnv.zoom(AD_Table_ID, Record_ID);
KeyNamePair tabknp = (KeyNamePair) model.getDataAt(selected, tableIdColumn);
Integer recint = (Integer) model.getDataAt(selected, recordIdColumn);
if (tabknp != null && recint != null) {
int AD_Table_ID = tabknp.getKey();
int Record_ID = recint.intValue();
AEnv.zoom(AD_Table_ID, Record_ID);
}
}
//