Attendance Functions: csv file not populating

I am trying to export the csv file out of the Attendance - Date Range Report under Special Functions/Attendance Functions. The report will populate a pdf, however, it will not populate the csv file. Any suggestions? I have placed some of the sql language in this report below:

$j(function() {
$j("a.button#csvFile_Daily").on('click', function(event) {
// CSV
var args = [$j('#results_~[if.~(gpv.atype)=DAILY]Daily[else]Meeting[/if]'), 'export.csv'];
exportTableToCSV.apply(this, args);

// If CSV, don't do event.preventDefault() or return false
// We actually need this to be a typical hyperlink
});

$j("a.button#pdfFile_~[if.~(gpv.atype)=DAILY]Daily[else]Meeting[/if]").on('click', function(event) {
generatePDF('results_~[if.~(gpv.atype)=DAILY]Daily[else]Meeting[/if]');
});

$j("a.button#copyData_~[if.~(gpv.atype)=DAILY]Daily[else]Meeting[/if]").on('click', function(event) {
copyDataToClipBoard('copyData','results_~[if.~(gpv.atype)=DAILY]Daily[else]Meeting[/if]');
});
});

console.log('Module assigned to window.Gotem. Logged below:')
console.log(Gotem)
var target = document.getElementById('results')
var trigger = document.getElementById('copyData')
Gotem(trigger, target, {
success: function () { console.log('success') },
error: function () { console.log('error') }
})

Subscribe to Comments for "Attendance Functions: csv file not populating"