BF [2910358] - Error in context when Key field is found in different tabs.
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2910358&group_id=176962 Latest changes broke windows where first tab has no parent key (like "Unposted Documents")
This commit is contained in:
parent
02fdcc78bd
commit
206dcfc075
|
@ -326,11 +326,17 @@ public class GridTable extends AbstractTableModel
|
||||||
//Restore the Original Value for Key Column Name based in Tab Context Value
|
//Restore the Original Value for Key Column Name based in Tab Context Value
|
||||||
int parentTabNo = getParentTabNo();
|
int parentTabNo = getParentTabNo();
|
||||||
String parentKey = Env.getContext(m_ctx, m_WindowNo, parentTabNo, GridTab.CTX_KeyColumnName, true);
|
String parentKey = Env.getContext(m_ctx, m_WindowNo, parentTabNo, GridTab.CTX_KeyColumnName, true);
|
||||||
String valueKey = Env.getContext(m_ctx, m_WindowNo, parentTabNo, parentKey, true);
|
String valueKey = null;
|
||||||
String currKey = Env.getContext(m_ctx, m_WindowNo, parentKey);
|
String currKey = null;
|
||||||
if (valueKey != null && valueKey.length() > 0 && parentKey != null && parentKey.length() > 0 && ! currKey.equals(valueKey))
|
if (parentKey != null && parentKey.length() > 0) {
|
||||||
{
|
valueKey = Env.getContext(m_ctx, m_WindowNo, parentTabNo, parentKey, true);
|
||||||
Env.setContext(m_ctx, m_WindowNo, parentKey, valueKey);
|
currKey = Env.getContext(m_ctx, m_WindowNo, parentKey);
|
||||||
|
if (currKey == null)
|
||||||
|
currKey = new String("");
|
||||||
|
if (valueKey != null && valueKey.length() > 0 && parentKey != null && parentKey.length() > 0 && ! currKey.equals(valueKey))
|
||||||
|
{
|
||||||
|
Env.setContext(m_ctx, m_WindowNo, parentKey, valueKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuffer where = new StringBuffer("");
|
StringBuffer where = new StringBuffer("");
|
||||||
|
|
Loading…
Reference in New Issue