Search in sources :

Example 1 with WSearch

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);
}
Also used : WSearch(org.adempiere.webui.WSearch) GridTab(org.compiere.model.GridTab) GridField(org.compiere.model.GridField)

Aggregations

WSearch (org.adempiere.webui.WSearch)1 GridField (org.compiere.model.GridField)1 GridTab (org.compiere.model.GridTab)1