From c2877db98e381109b5f138d7ee29da682654a246 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 20 Nov 2013 17:05:32 -0500 Subject: [PATCH] IDEMPIERE-1538 InfoPanel & InfoWindow is don't complete support multi select / IDEMPIERE-1335 Info window multi-select for proces some items/do action / Thanks to Heng Sin --- .../src/org/adempiere/webui/factory/DefaultInfoFactory.java | 2 +- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java index 08d7e727a7..8788d7446f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/factory/DefaultInfoFactory.java @@ -135,7 +135,7 @@ public class DefaultInfoFactory implements IInfoFactory { if (col.equals("M_Product_ID")) { - InfoWindow infoWindow = new InfoProductWindow(lookup.getWindowNo(), tableName, keyColumn, queryValue, multiSelection, whereClause, AD_InfoWindow_ID); + InfoWindow infoWindow = new InfoProductWindow(lookup.getWindowNo(), tableName, keyColumn, queryValue, true, whereClause, AD_InfoWindow_ID); if (infoWindow.loadedOK()) return infoWindow; diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index ddb1886a67..1f30e704dd 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -557,6 +557,7 @@ public abstract class InfoPanel extends Window implements EventListener, model = new ListModelTable(subList); model.setSorter(this); model.addTableModelListener(this); + model.setMultiple(p_multipleSelection); contentPanel.setData(model, null); pageNo = 0; @@ -572,6 +573,7 @@ public abstract class InfoPanel extends Window implements EventListener, model = new ListModelTable(readLine(0, -1)); model.setSorter(this); model.addTableModelListener(this); + model.setMultiple(p_multipleSelection); contentPanel.setData(model, null); } } @@ -586,6 +588,7 @@ public abstract class InfoPanel extends Window implements EventListener, model = new ListModelTable(new ArrayList()); model.setSorter(this); model.addTableModelListener(this); + model.setMultiple(p_multipleSelection); contentPanel.setData(model, null); } int no = m_count; @@ -1177,6 +1180,7 @@ public abstract class InfoPanel extends Window implements EventListener, model = new ListModelTable(subList); model.setSorter(this); model.addTableModelListener(this); + model.setMultiple(p_multipleSelection); contentPanel.setData(model, null); contentPanel.setSelectedIndex(0);