Support CSV extension to allow CSV files downloads default tip
authorAlberto Santos <albertosantos9@hotmail.com>
Tue, 06 Mar 2018 16:47:16 +0100
changeset 32427 921d05d6c4a4
parent 32426 b0850f8aa3fd
Support CSV extension to allow CSV files downloads
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java	Tue Jan 09 15:10:23 2018 +0100
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java	Tue Mar 06 16:47:16 2018 +0100
@@ -173,6 +173,8 @@
       expType = ExportType.XLS;
     } else if (strFileName.endsWith("." + ExportType.XLSX.getExtension())) {
       expType = ExportType.XLSX;
+    } else if (strFileName.endsWith("." + ExportType.CSV.getExtension())) {
+      expType = ExportType.CSV;
     } else {
       throw new IllegalArgumentException("Trying to download report file with unsupported type "
           + strFileName);