I am working on a javascript/HTML table and looking for a way to download it and save as an Excel file. If anyone has any code snippets or suggestions, I would greatly appreciate it.
Below is the code snippet I have used to create 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'
};
Thank you in advance!