OnFind doesn't check FindWindow.IsCancel

This commit is contained in:
Heng Sin Low 2009-03-05 08:42:55 +00:00
parent c5b01e5672
commit 8fd5367c8f
1 changed files with 13 additions and 12 deletions

View File

@ -1044,20 +1044,21 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
curTab.getWhereExtended(), findFields, 1, curTab.getAD_Tab_ID());
find.setVisible(true);
AEnv.showWindow(find);
MQuery query = find.getQuery();
find = null;
// Confirmed query
if (query != null)
if (!find.isCancel())
{
m_onlyCurrentRows = false; // search history too
curTab.setQuery(query);
curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); // autoSize
}
curTab.dataRefresh(); // Elaine 2008/07/25
MQuery query = find.getQuery();
// Confirmed query
if (query != null)
{
m_onlyCurrentRows = false; // search history too
curTab.setQuery(query);
curTabpanel.query(m_onlyCurrentRows, m_onlyCurrentDays, 0); // autoSize
}
curTab.dataRefresh(); // Elaine 2008/07/25
}
}
/**