Yes I can teach the users to go to a report in a table and download but a button in the project would be so much better.
Any thoughts on how to add the filtering?
"<a href=# class='Vibrant Success' onclick=''>Download</a>"
function download(filename, content) {
var blob = new Blob([content]);
var a = document.createElement('a');
a.href = window.URL.createObjectURL(blob);
a.download = filename;
a.style.display = 'none';
document.body.appendChild(a);
a.click();
}
var dbidTable= 'dbidTable';
var qid = '1';
var output = 'output.csv';
var url = '${dbidTable}?a=q&qid=${qid}&opts=csv';
$.get(url, function(csv) {
download('${output}', csv);
});