Hi,
I would like to add a date, for example, to the exported file name. How to do it?
So i have something like this
$report = new report_class;
$report->run()->exportToCSV(array(
"dataStores" => array(
"report_datastore" => array(
"delimiter" => ",",
"columns"=>array(
'name', 'quantity'
)
)
)
))->toBrowser("file name.csv");
and want to add the date that i can get form my data store like this
$Date = $this->dataStore("report_datastore")->data()[0]['date'];
but how to use it in this case? Is it possible?