Search on empty window failing - ID: 2849453

This commit is contained in:
Heng Sin Low 2009-09-18 06:26:07 +00:00
parent 8a8ac368ab
commit 506bc2038f
2 changed files with 5 additions and 2 deletions

View File

@ -1188,8 +1188,6 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
FindWindow find = new FindWindow (curTab.getWindowNo(), curTab.getName(),
curTab.getAD_Table_ID(), curTab.getTableName(),
curTab.getWhereExtended(), findFields, 1, curTab.getAD_Tab_ID());
find.setVisible(true);
AEnv.showWindow(find);
if (!find.isCancel())
{

View File

@ -33,6 +33,7 @@ import java.util.logging.Level;
import java.util.regex.Pattern;
import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.Combobox;
import org.adempiere.webui.component.Grid;
@ -211,6 +212,7 @@ public class FindWindow extends Window implements EventListener,ValueChangeListe
if (m_total < minRecords)
{
dispose();
return;
}
this.setBorder("normal");
@ -220,6 +222,9 @@ public class FindWindow extends Window implements EventListener,ValueChangeListe
this.setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
this.setClosable(false);
this.setSizable(true);
this.setVisible(true);
AEnv.showWindow(this);
}
/**
* initialise lookup record tab