What i´m trying to do is generating an xlsx file with multiple sheets by using alaSql . They only need to have the columns and no data at all (it´s going to be used as a template available for download)
var tasksData = [{
UserName:"",
Application:"",
Module:""
}];
var objectsData = [{
UserName:"",
Application:"",
Module:""
}];
var conflictsData = [{
UserName:"",
Application:"",
Module:""
}];
var opts = [{
sheetid: 'TasksData',
headers: false
}, {
sheetid: 'ObjectsData',
headers: false
}, {
sheetid: 'ConflictsData',
headers: false
}];
alasql('SELECT * INTO XLSX("MatrixSODTemplate.xlsx",?) FROM ?',[opts,[tasksData,objectsData,conflictsData]]);
i need the output to be a single xlsx file with 3 sheets. And no data in it, only the columns.
Sheet TaskData: -UserName -Application -Module
Sheet ObjectsData: -UserName -Application -Module
Sheet ConflictsData: -UserName -Application -Module