use of org.adempiere.webui.WSearch in project adempiere by adempiere.
the class AbstractADWindowPanel method onFind.
//
/**
* @see ToolbarListener#onFind()
*/
public void onFind() {
GridTab currentTab = toolbar.getCurrentPanel().getGridTab();
if (currentTab == null)
return;
if (!onSave(false))
return;
// Gets Fields from AD_Field_v
GridField[] findFields = GridField.createFields(ctx, currentTab.getWindowNo(), 0, currentTab.getAD_Tab_ID());
// FindWindow find = new FindWindow (currentTab.getWindowNo(), currentTab.getName(),
// currentTab.getAD_Table_ID(), currentTab.getTableName(),
// currentTab.getWhereExtended(), findFields, 1, currentTab.getAD_Tab_ID());
// Open a popup or the search window
WSearch find = new WSearch(this, toolbar.getEvent().getTarget(), currentTab, findFields);
}