IDEMPIERE-3400 Sort tabs not refreshing

This commit is contained in:
Carlos Ruiz 2017-06-15 22:21:49 +02:00
parent 777735cafe
commit fb372535e3
2 changed files with 11 additions and 7 deletions

View File

@ -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)

View File

@ -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() {