[ 1805503 ] UI allows changing record while new record not saved
This commit is contained in:
parent
271966a547
commit
0ecc70268c
|
@ -777,8 +777,14 @@ public class GridController extends CPanel
|
|||
}
|
||||
else
|
||||
{
|
||||
if (rowTable != rowCurrent)
|
||||
m_mTab.navigate(rowTable);
|
||||
if (rowTable != rowCurrent) {
|
||||
//make sure table selection is consistent with model
|
||||
int t = m_mTab.navigate(rowTable);
|
||||
if (t != rowTable) {
|
||||
rowTable = t;
|
||||
vTable.setRowSelectionInterval(rowTable, rowTable);
|
||||
}
|
||||
}
|
||||
dynamicDisplay(0);
|
||||
}
|
||||
|
||||
|
|
|
@ -498,6 +498,7 @@ public class VLookup extends JComponent
|
|||
if (notFound) // <key>
|
||||
{
|
||||
m_value = null;
|
||||
if (!m_inserting)
|
||||
actionCombo (null); // data binding
|
||||
log.fine(m_columnName + "=" + value + ": Not found");
|
||||
}
|
||||
|
@ -517,6 +518,7 @@ public class VLookup extends JComponent
|
|||
if (m_combo.getSelectedItem() == null)
|
||||
{
|
||||
log.info(m_columnName + "=" + value + ": not in Lookup - set to NULL");
|
||||
if (!m_inserting)
|
||||
actionCombo (null); // data binding (calls setValue again)
|
||||
m_value = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue