* WindowManager need to track zoom across window as well
* Fixed error message prompt twice bug when changing tab * Disallow change to detail tab when parent tab is new and not saved yet
This commit is contained in:
parent
2f0471f9cb
commit
50e3281ddd
|
|
@ -128,6 +128,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
/** Logger */
|
/** Logger */
|
||||||
protected CLogger log = CLogger.getCLogger(getClass());
|
protected CLogger log = CLogger.getCLogger(getClass());
|
||||||
|
|
||||||
|
private boolean m_parentNeedSave = false;
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Tab loader for Tabs > 0
|
* Tab loader for Tabs > 0
|
||||||
|
|
@ -508,6 +510,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
// Detail Query
|
// Detail Query
|
||||||
if (isDetail())
|
if (isDetail())
|
||||||
{
|
{
|
||||||
|
m_parentNeedSave = false;
|
||||||
String lc = getLinkColumnName();
|
String lc = getLinkColumnName();
|
||||||
if (lc.equals(""))
|
if (lc.equals(""))
|
||||||
log.severe ("No link column");
|
log.severe ("No link column");
|
||||||
|
|
@ -520,7 +523,12 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
m_linkValue = value;
|
m_linkValue = value;
|
||||||
// Check validity
|
// Check validity
|
||||||
if (value.length() == 0)
|
if (value.length() == 0)
|
||||||
log.severe ("No value for link column " + lc);
|
{
|
||||||
|
//log.severe ("No value for link column " + lc);
|
||||||
|
//parent is new, can't retrieve detail
|
||||||
|
m_parentNeedSave = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// we have column and value
|
// we have column and value
|
||||||
|
|
@ -2410,6 +2418,14 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
||||||
return m_mTable.getValueAt(row, col);
|
return m_mTable.getValueAt(row, col);
|
||||||
} // getValue
|
} // getValue
|
||||||
|
|
||||||
|
public boolean isNeedToSaveParent()
|
||||||
|
{
|
||||||
|
if (isDetail())
|
||||||
|
return m_parentNeedSave;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* toString
|
* toString
|
||||||
* @return String representation
|
* @return String representation
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue