From 3c2f1a9ee43c1aeda53b9df467e7c49af4b59a57 Mon Sep 17 00:00:00 2001 From: Elaine Tan Date: Mon, 10 Sep 2012 12:30:04 +0800 Subject: [PATCH] IDEMPIERE-270 Reports should inherit search filter from window - fix all columns check box visibility logic --- .../src/org/adempiere/webui/panel/action/ReportAction.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ReportAction.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ReportAction.java index 18cbb77ae8..f02fea6e6b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ReportAction.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/action/ReportAction.java @@ -104,7 +104,12 @@ public class ReportAction implements EventListener chkAllColumns.setLabel(Msg.getMsg(Env.getCtx(), "AllColumns")); chkAllColumns.setSelected(false); - chkAllColumns.setVisible(false); + li = cboPrintFormat.getSelectedItem(); + if (li != null && li.getValue() != null) + { + int AD_PrintFormat_ID = Integer.valueOf(li.getValue().toString()); + chkAllColumns.setVisible(AD_PrintFormat_ID == -1); + } Vbox vb = new Vbox(); vb.setWidth("100%");