Browse Source

Merge pull request #9148 from GordonSmith/HPCC-16077

HPCC-16325 Add CSV download option for Results

Reviewed-By: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 years ago
parent
commit
e9396297ad

+ 4 - 0
esp/src/eclwatch/ResultWidget.js

@@ -117,6 +117,10 @@ define([
             this._doDownload("xls");
         },
 
+        _onDownloadCSV: function (args) {
+            this._doDownload("csv");
+        },
+
         _onFileDetails: function (args) {
             alert("todo");
         },

+ 1 - 0
esp/src/eclwatch/nls/hpcc.js

@@ -85,6 +85,7 @@ define({root:
     ClearPermissionsCache: "Clear Permissions Cache",
     ClearPermissionsCacheConfirm: "Are you sure you want to clear the DALI and ESP permissions caches? Running workunit performance might degrade significantly until the caches have been refreshed.",
     ClonedWUID: "Cloned WUID",
+    CSV: "CSV",
     Dali: "Dali",
     dataset: ":=dataset*",
     Date: "Date",

+ 1 - 0
esp/src/eclwatch/templates/ResultWidget.html

@@ -7,6 +7,7 @@
             <div data-dojo-attach-event="onClick:_onDownloadZip" data-dojo-type="dijit.form.Button">${i18n.Zip}</div>
             <div data-dojo-attach-event="onClick:_onDownloadGZip" data-dojo-type="dijit.form.Button">${i18n.GZip}</div>
             <div data-dojo-attach-event="onClick:_onDownloadXLS" data-dojo-type="dijit.form.Button">${i18n.XLS}</div>
+            <div data-dojo-attach-event="onClick:_onDownloadCSV" data-dojo-type="dijit.form.Button">${i18n.CSV}</div>
             <span data-dojo-type="dijit.ToolbarSeparator"></span>
             <div id="${id}Filter" data-dojo-type="FilterDropDownWidget">
             </div>