0

I have created a javascript/HTML table. How to download this and store in excel? Any code will be of help.

This is my code for creating the table:

function populateTable(results) {
                var tableDiv = document.getElementById('aDiv');
                var config = { columns:
                                                [{key: 'FormattedID', width: 100},
                                                 {key: 'Name'},
                                                 {key: 'Type'},
                                                 {key: 'Method'},
                                                 {key: 'Risk'},
                                                 {key: 'Priority'}] };
                var table = new rally.sdk.ui.Table(config);
                table.addRows(results.testcases);
                table.display(tableDiv);
                alert (results.testcases.length);

           }
           queryConfig = {
                type : 'testcase',
                key  : 'testcases',
                fetch: 'true'
            };

Thanks

AMuk
  • 1

1 Answers1

0

You should have a look at TabletoCSV jquery plugin and to the threads that were discussed about it on StackOverflow: jQuery Table to CSV export and Export to csv in jQuery

Community
  • 1
  • 1
JMax
  • 26,109
  • 12
  • 69
  • 88