js in my angular js project to export a grid to excel, heres my code:
inventaire.exportMyDataVille = function(data) {
var city='Safi';
alasql('SELECT * INTO XLSX("data.xlsx",{headers:true}) FROM ? WHERE secteur='+city+' GROUP BY secteur,agence,serie', [inventaire.myDataSource]);
};
what im trying to do is to pass a parametre in the alasql but it gives a empty excel file??is there somthing wrong in the request