Fixed 'IsSOTrx' context for window / noticed from revision 3e74fe09f8cf that is required both times - before setting the tabs and after setSelectedIndex that reset the variable
This commit is contained in:
parent
de3f840d0a
commit
308e056b95
|
@ -310,7 +310,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
gridWindow = new GridWindow(gWindowVO, true);
|
||||
title = gridWindow.getName();
|
||||
|
||||
// Set AutoNew for Window
|
||||
// Set SO/AutoNew for Window
|
||||
Env.setContext(ctx, curWindowNo, "IsSOTrx", gridWindow.isSOTrx());
|
||||
if (!autoNew && gridWindow.isTransaction())
|
||||
{
|
||||
Env.setAutoNew(ctx, curWindowNo, true);
|
||||
|
@ -360,8 +361,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
curTabIndex = 0;
|
||||
|
||||
adTab.setSelectedIndex(0);
|
||||
// all fields context for window is clear at AbstractADTab.prepareContext, set IsSOTrx for window
|
||||
Env.setContext(ctx, curWindowNo, "IsSOTrx", gridWindow.isSOTrx());
|
||||
// all fields context for window is clear at AbstractADTab.prepareContext, set again IsSOTrx for window
|
||||
Env.setContext(ctx, curWindowNo, "IsSOTrx", gridWindow.isSOTrx());
|
||||
toolbar.enableTabNavigation(adTab.getTabCount() > 1);
|
||||
toolbar.enableFind(true);
|
||||
adTab.evaluate(null);
|
||||
|
|
Loading…
Reference in New Issue