Click here to Skip to main content
15,902,918 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
below is my code ,

$scope.RegularDownload = function () {
    debugger;
    var fileName = "";
    //$scope.file = $scope.file.filter(function (el) { return el != null; });
    if ($scope.orderItemReview.currentRecipient && $scope.orderItemReview.currentRecipient.fileName)
        fileName = $scope.orderItemReview.currentRecipient.fileName;
    alasql("SELECT  INTO XLSX (?,{headers:true}) FROM ?", [fileName, $scope.file]);

}


What I have tried:

I have imported below two library,still the contents are not showing inside the file.

<script src="https://cdnjs.cloudflare.com/ajax/libs/alasql/0.4.2/alasql.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.9.2/xlsx.core.min.js"></script>


can somone please assist me on this.
Posted
Updated 18-Dec-19 1:39am
Comments
ZurdoDev 17-Dec-19 9:07am    
First off, reading the documentation, https://github.com/agershun/alasql, your sql statement is incorrect. Missing * or field names.

1 solution

As mentioned in the comments, you first need to fix your sql statement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900