You need to sign in to do that
Don't have an account?
Ravi Chandra Chevula 16
Download of CSV file is not working for Microsoft Edge
Download of CSV file functionality is not working for Microsoft Edge but working fine in Chrome and Fire Fox
here is the below piece of code which i making use of
here is the below piece of code which i making use of
generateReportAction.setCallback(this, function(response) { var state = response.getState(); if(component.isValid() && response.getState() === 'SUCCESS'){ var hiddenElement = document.createElement('a'); hiddenElement.href = 'data:text/csv;charset=utf-8,' + encodeURI(response.getReturnValue()); hiddenElement.target = '_self'; if(reportType == "UserReport"){ hiddenElement.download = 'Study-' + record.protocolName + '-UserReport.csv'; } if(reportType == "FolderReport"){ hiddenElement.download = 'Study-' + record.protocolName + '-FolderReport.csv'; } document.body.appendChild(hiddenElement); hiddenElement.click(); } else { component.find("showToastCmpId").showToastMessages( 'Error: ', 'There was an error during generating the Folders Report.', 'error' ); } });