IDEMPIERE-3400 Sort tabs not refreshing
This commit is contained in:
parent
777735cafe
commit
fb372535e3
|
@ -93,6 +93,13 @@ public class ADSortTab extends Panel implements IADTabpanel
|
|||
|
||||
m_AD_Table_ID = gridTab.getAD_Table_ID();
|
||||
ZKUpdateUtil.setVflex(this, "true");
|
||||
|
||||
addEventListener(ON_ACTIVATE_EVENT, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
removeAttribute(ATTR_ON_ACTIVATE_POSTED);
|
||||
}
|
||||
});
|
||||
} // ADSortTab
|
||||
|
||||
/** Logger */
|
||||
|
@ -357,13 +364,6 @@ public class ADSortTab extends Panel implements IADTabpanel
|
|||
ZKUpdateUtil.setVflex(yesList, true);
|
||||
ZKUpdateUtil.setHflex(yesList, "1");
|
||||
hlayout.appendChild(yesList);
|
||||
|
||||
addEventListener(ON_ACTIVATE_EVENT, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
removeAttribute(ATTR_ON_ACTIVATE_POSTED);
|
||||
}
|
||||
});
|
||||
} // Init
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
|
@ -1769,6 +1769,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
{
|
||||
sortColumn.setSortDirection("natural");
|
||||
}
|
||||
if (gridTab.isSortTab()) { // refresh is not refreshing sort tabs
|
||||
IADTabpanel tabPanel = adTabbox.getSelectedTabpanel();
|
||||
tabPanel.query(false, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
private Column findCurrentSortColumn() {
|
||||
|
|
Loading…
Reference in New Issue