- search definition bug for high volume table
This commit is contained in:
Heng Sin Low 2009-12-14 05:18:28 +00:00
parent cfa4c6c050
commit 2a72cf6b6b
2 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,7 @@ import org.adempiere.webui.util.UserPreference;
import org.adempiere.webui.window.ADWindow; import org.adempiere.webui.window.ADWindow;
import org.compiere.model.MGoal; import org.compiere.model.MGoal;
import org.compiere.model.MMenu; import org.compiere.model.MMenu;
import org.compiere.model.MQuery;
import org.compiere.model.X_AD_Menu; import org.compiere.model.X_AD_Menu;
import org.compiere.model.X_PA_DashboardContent; import org.compiere.model.X_PA_DashboardContent;
import org.compiere.util.CLogger; import org.compiere.util.CLogger;
@ -467,4 +468,10 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
autoHideMenu(); autoHideMenu();
super.openWorkflow(workflowID); super.openWorkflow(workflowID);
} }
@Override
public void showWindow(int AD_Window_ID, MQuery query) {
autoHideMenu();
super.showWindow(AD_Window_ID, query);
}
} }

View File

@ -43,6 +43,7 @@ public class DocumentSearch extends AbstractDocumentSearch {
@Override @Override
protected boolean openWindow(int windowId, MQuery query) { protected boolean openWindow(int windowId, MQuery query) {
query.setRecordCount(1);
SessionManager.getAppDesktop().showWindow(windowId, query); SessionManager.getAppDesktop().showWindow(windowId, query);
return true; return true;
} }