Search in sources :

Example 1 with WRequest

use of org.adempiere.webui.WRequest in project adempiere by adempiere.

the class AbstractADWindowPanel method onRequests.

//
// Elaine 2008/07/22
/**
     * @see ToolbarListener#onRequests()
     */
public void onRequests() {
    if (toolbar.getEvent() != null) {
        GridTab currentTab = toolbar.getCurrentPanel().getGridTab();
        if (currentTab.getRecord_ID() <= 0)
            return;
        int C_BPartner_ID = 0;
        Object bpartner = currentTab.getValue("C_BPartner_ID");
        if (bpartner != null)
            C_BPartner_ID = Integer.valueOf(bpartner.toString());
        new WRequest(toolbar.getEvent().getTarget(), currentTab.getAD_Table_ID(), currentTab.getRecord_ID(), C_BPartner_ID);
    }
}
Also used : WRequest(org.adempiere.webui.WRequest) GridTab(org.compiere.model.GridTab)

Aggregations

WRequest (org.adempiere.webui.WRequest)1 GridTab (org.compiere.model.GridTab)1