function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi Chandra Chevula 16Ravi 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 
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' );
			}
		});