IDEMPIERE-4964 - Status line message does not update when changing th… (#918)

* IDEMPIERE-4964 - Status line message does not update when changing the detail

* Update GridTab.java

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
This commit is contained in:
Diego Ruiz 2021-10-11 20:06:01 +02:00 committed by GitHub
parent b9239b2578
commit 859c30166b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -113,7 +113,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
/** /**
* *
*/ */
private static final long serialVersionUID = 6119615577891555600L; private static final long serialVersionUID = -2091725732178841608L;
public static final String DEFAULT_STATUS_MESSAGE = "NavigateOrUpdate"; public static final String DEFAULT_STATUS_MESSAGE = "NavigateOrUpdate";
@ -1083,6 +1083,14 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
* refresh current row of parent tabs * refresh current row of parent tabs
*/ */
public void refreshParentTabs() { public void refreshParentTabs() {
refreshParentTabs(false);
}
/**
* refresh current row of parent tabs
*/
public void refreshParentTabs(boolean fireParentEvent) {
if (isDetail()) { if (isDetail()) {
// get parent tab // get parent tab
// the parent tab is the first tab above with level = this_tab_level-1 // the parent tab is the first tab above with level = this_tab_level-1
@ -1091,7 +1099,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
GridTab parentTab = m_window.getTab(i); GridTab parentTab = m_window.getTab(i);
if (parentTab.m_vo.TabLevel == level-1) { if (parentTab.m_vo.TabLevel == level-1) {
// this is parent tab // this is parent tab
parentTab.dataRefresh(false); parentTab.dataRefresh(fireParentEvent);
// search for the next parent // search for the next parent
if (parentTab.isDetail()) { if (parentTab.isDetail()) {
level = parentTab.m_vo.TabLevel; level = parentTab.m_vo.TabLevel;

View File

@ -167,7 +167,7 @@ public class CompositeADTabbox extends AbstractADTabbox
showLastError(); showLastError();
} else { } else {
tabPanel.getGridTab().dataRefreshAll(true, true); tabPanel.getGridTab().dataRefreshAll(true, true);
tabPanel.getGridTab().refreshParentTabs(); tabPanel.getGridTab().refreshParentTabs(true);
} }
} }
else if (DetailPane.ON_DELETE_EVENT.equals(event.getName())) { else if (DetailPane.ON_DELETE_EVENT.equals(event.getName())) {