From 2af449365ad7f44b81b7cd43b6d5f53a87dea50f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 17 Sep 2012 16:55:00 -0500 Subject: [PATCH] IDEMPIERE-131 Info Account Viewer enhancement / fix zk6 not showing the buttons --- .../WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java index 311b39bac8..53dc3f2070 100755 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/acct/WAcctViewer.java @@ -56,6 +56,7 @@ import org.compiere.model.MColumn; import org.compiere.model.X_C_AcctSchema_Element; import org.compiere.report.core.RModel; import org.compiere.report.core.RModelExcelExporter; +import org.compiere.tools.FileUtil; import org.compiere.util.CLogger; import org.compiere.util.Env; import org.compiere.util.Ini; @@ -759,7 +760,7 @@ public class WAcctViewer extends Window implements EventListener RModelExcelExporter exporter = new RModelExcelExporter(m_rmodel); File file; try { - file = File.createTempFile(TITLE, ".xls"); + file = new File(FileUtil.getTempMailName(TITLE, ".xls")); exporter.export(file, Env.getLanguage(Env.getCtx())); Filedownload.save(file, "application/vnd.ms-excel"); } catch (Exception e) { @@ -1009,6 +1010,7 @@ public class WAcctViewer extends Window implements EventListener // Switch to Result pane tabbedPane.setSelectedIndex(1); + stateChanged(); // Set TableModel with Query