IDEMPIERE-1652:message "re-login and re-start" is not show when switch record by click other item in tree

This commit is contained in:
hieplq 2015-01-14 15:02:10 -05:00
parent 1fadc26564
commit 39c73c6eb7
2 changed files with 18 additions and 2 deletions

View File

@ -1169,8 +1169,7 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
throw new AdempiereException(Msg.getMsg(Env.getCtx(),"RecordIsNotInCurrentSearch"));
}
// Navigate to node row
gridTab.navigate(row);
windowPanel.onTreeNavigate(row);
}
/**

View File

@ -856,6 +856,23 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
saveAndNavigate(callback);
}
/**
* @see ToolbarListener#onPrevious()
*/
public void onTreeNavigate(final int rowIndex)
{
Callback<Boolean> callback = new Callback<Boolean>() {
@Override
public void onCallback(Boolean result) {
if (result) {
adTabbox.getSelectedGridTab().navigate(rowIndex);
focusToActivePanel();
}
}
};
saveAndNavigate(callback);
}
// Elaine 2008/12/04
private Menupopup m_popup = null;
private Menuitem m_lock = null;