From 859c30166bb35da7c6f8205d8131ada1dafd61ac Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Mon, 11 Oct 2021 20:06:01 +0200 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-4964=20-=20Status=20line=20message=20?= =?UTF-8?q?does=20not=20update=20when=20changing=20th=E2=80=A6=20(#918)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IDEMPIERE-4964 - Status line message does not update when changing the detail * Update GridTab.java Co-authored-by: Carlos Ruiz --- .../src/org/compiere/model/GridTab.java | 14 +++++++++++--- .../webui/adwindow/CompositeADTabbox.java | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/GridTab.java b/org.adempiere.base/src/org/compiere/model/GridTab.java index 229e108646..dc3a59db3b 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTab.java +++ b/org.adempiere.base/src/org/compiere/model/GridTab.java @@ -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"; @@ -1078,11 +1078,19 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable } return false; } - + /** * refresh current row of parent tabs */ public void refreshParentTabs() { + refreshParentTabs(false); + } + + + /** + * refresh current row of parent tabs + */ + public void refreshParentTabs(boolean fireParentEvent) { if (isDetail()) { // get parent tab // 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); if (parentTab.m_vo.TabLevel == level-1) { // this is parent tab - parentTab.dataRefresh(false); + parentTab.dataRefresh(fireParentEvent); // search for the next parent if (parentTab.isDetail()) { level = parentTab.m_vo.TabLevel; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java index 3f0372951c..1bd0bf4c6e 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/CompositeADTabbox.java @@ -167,7 +167,7 @@ public class CompositeADTabbox extends AbstractADTabbox showLastError(); } else { tabPanel.getGridTab().dataRefreshAll(true, true); - tabPanel.getGridTab().refreshParentTabs(); + tabPanel.getGridTab().refreshParentTabs(true); } } else if (DetailPane.ON_DELETE_EVENT.equals(event.getName())) {