BF [ 2985892 ] Opening a window using a new record query is not working

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2985892
This commit is contained in:
teo_sarca 2010-04-26 20:10:31 +00:00
parent 788947ce47
commit 988ccdafa2
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,8 @@ import org.zkoss.zul.Menupopup;
* @author Teo Sarca, teo.sarca@gmail.com * @author Teo Sarca, teo.sarca@gmail.com
* <li>BF [ 2992540 ] Grid/Panel not refreshed after process run * <li>BF [ 2992540 ] Grid/Panel not refreshed after process run
* https://sourceforge.net/tracker/?func=detail&aid=2992540&group_id=176962&atid=955896 * https://sourceforge.net/tracker/?func=detail&aid=2992540&group_id=176962&atid=955896
* <li>BF [ 2985892 ] Opening a window using a new record query is not working
* https://sourceforge.net/tracker/?func=detail&aid=2985892&group_id=176962&atid=955896
*/ */
public abstract class AbstractADWindowPanel extends AbstractUIPart implements ToolbarListener, public abstract class AbstractADWindowPanel extends AbstractUIPart implements ToolbarListener,
EventListener, DataStatusListener, ActionListener, ASyncProcess EventListener, DataStatusListener, ActionListener, ASyncProcess
@ -597,6 +599,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
onNew(); onNew();
else if (query == null && curTab.getRowCount() == 0 && Env.isAutoNew(ctx, curWindowNo)) else if (query == null && curTab.getRowCount() == 0 && Env.isAutoNew(ctx, curWindowNo))
onNew(); onNew();
else if (!curTab.isReadOnly() && curTab.isQueryNewRecord())
onNew();
} }
} }