Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Thanks.... but here I cant insert the value in column because this column is not static .... $TotalSold_byName->pipe(new RemoveColumn(array(
"p_date",
"ticket_qty" ,
"Ticket_Id" ,
"Ticket_name_e" ,
"ticket_name",
"e_attende_date",
"p_sold_date",
"ticket_id",
"tixsold",
"totaltix",
)))
->pipe(new Cube(array(
"row"=>"Date_form",
"column"=>"NameOnTickets",
"sum"=>"Total_Tickets_Sold"
)))
->pipe(new ColumnMeta(array(
"{{all}}"=>array(
"label"=>"Total Tickets Sold",
))))
->pipe($this->dataStore('together'));
Before datastore need to add null values for very generated column ......
Hi Mike,
Please download the latest version of KoolReport and apply the following process to add an empty row to the start of your data flow:
use \koolreport\processes\Map;
...
->pipe(new Map([
'{value}' => function($row, $meta, $index) {
if ($index === 0) {
$emptyRow = $row;
foreach ($emptyRow as $k => $v)
$empty$row[$k] = null;
return [$emptyRow, $row];
}
else
return $row;
},
]))
...
Let us know if this solves your problem. Thanks!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo