if (exportdata != null) {
var blob = new Blob([s2ab(exportdata.filedata)], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
});
//saveAs provided by FileSaver.js
saveAs(blob, exportdata.filename);
framework.displayAlert('ERRORS.SUCCESS', 'Data downloaded successfully');
} else {
framework.displayAlert('ERRORS.ERROR', data.error);
}
function s2ab(s) {
var buf = new ArrayBuffer(s.length);
var view = new Uint8Array(buf);
for (var i = 0; i != s.length; ++i) view[i] = s.charCodeAt(i) & 0xFF;
return buf;
}
In saveAs() I have given the file type and filename. It will save with the given file name in the downloads folder. But I want to save it in D://Reports/sample/ this path. Is there any options to achieve this?