Explorar o código

[beeswax] Warn on downloading beeswax results with more than 255 columns

Jenny Kim %!s(int64=10) %!d(string=hai) anos
pai
achega
8d21a08
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      apps/beeswax/src/beeswax/templates/execute.mako

+ 6 - 0
apps/beeswax/src/beeswax/templates/execute.mako

@@ -1840,6 +1840,12 @@ $(document).ready(function () {
     }
     }
   });
   });
 
 
+  $("#download-excel").click(function () {
+    if (viewModel.design.results.columns().length > 255) {
+      $.jHueNotify.warn("${ _('Results exceeds maximum number of columns permitted by Excel, will truncate results to 255 columns.') }")
+    }
+  });
+
 });
 });
 
 
 var editables = function() {
 var editables = function() {