Need a special offer?Find out if your project fits.
+

ReferenceError: savingAs is not defined

Answered
Johan Tempelman asked on June 14, 2017

When I try to export to Excel from the toolbar I get above error in the console. I am using the latest version 2.317 and jQuery 2.2.4.

5 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster June 14, 2017

Hello Johan,
Thank you for reporting the issue. We were not able to reproduce it on our side. Could you please provide us with some additional details? Knowing which browser you use would greatly help us. Also, please specify your data source type.
Regards,
Tanya

Public
Johan Tempelman June 14, 2017

Here is the javascript code.
 

<script>
$(document).ready(function() {

var pivot = $('#pivotContainer').flexmonster({
componentFolder: '/assets/',
toolbar: true,
licenseKey: ''

});



$("#updateCountryOverviewData").click(function(){
$("#updateCountryOverviewData").addClass('btn-warning');
pivot.clear()
var report= $("#sncr_overview_report").val();
var gfr = $("#country_gfr").val();
$.get(
'/kpi_reports/get_country_overview_data',
{ report: report, gfr: gfr },
function(r) {
pivot.updateData({data: r});
pivot.setOptions({
grid: {
title: report},
decimalPlaces: 0

});
pivot.runQuery(slice);
pivot.setFormat(format);
pivot.refresh();
$("#updateCountryOverviewData").removeClass('btn-warning');
},
"json" );
return false });


var slice = {
rows: [
{ uniqueName: "supplier" },
{ uniqueName: "[Measures"}
],
columns: [
{ uniqueName: "fy", "sort": "desc"},
{ uniqueName: "period", "sort": "desc" }
],
measures: [
{ uniqueName: "value", aggregation: "sum" }
]
};

var format = {
name: "",
decimalPlaces: 0
};



});

</script>

 

Public
Tanya Gryshko Tanya Gryshko Flexmonster June 14, 2017

Hello Johan,
Thank you for providing the code. In our last minor release, we have changed some additional libraries our component is using. Please copy lib/ folder from the downloaded package and replace it with the current one in your flexmonster/ folder. Then we recommend clearing cache in the browser. Does this approach solve your problem?
Regards,
Tanya

Public
Johan Tempelman June 15, 2017

Still the same error. I also got a dialog saying "Cannot save file.". Tried it in both Firefox and IE with the same result.

Public
Tanya Gryshko Tanya Gryshko Flexmonster June 15, 2017

Johan,

Can you reproduce the same issue on our website? Is it possible to provide us access to your web application?

Thanks,
 Tanya

Please login or Register to Submit Answer