/** Associate Button Pressed */ private void cmd_associate() { int productRow = xProductTable.getSelectedRow(); log.config("Row=" + productRow); KeyNamePair product = (KeyNamePair) xProductTable.getValueAt(productRow, 0); doInsert(product.getKey(), 0); // ** Load Table ** tableInit_option = 1; tableInit(); tableLoad(xAssociateTable); // ** Load Table ** tableInit_option = 2; tableInit(); tableLoad(xProductTable); bDisassociate.setEnabled(true); bNewProduct.setEnabled(false); // Coloco la referencia como asociada // MVMRVendorProdRef vendorProdRef = new MVMRVendorProdRef(Env.getCtx(), // LineRefProv.getXX_VMR_VendorProdRef_ID(), null); // vendorProdRef.setXX_IsAssociated(true); // vendorProdRef.save(); } // cmd_associate