Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
This is a case use tranposing each data row from vertical columns to horizontal rows. You could use the Map process for it like this:
->pipe(new \koolreport\processes\Map(array(
"{value}" => function($row) {
$newRows = [];
foreach ($row as $columnName => $value) {
$horizontalRow = [
"field" => $columnName,
"value" => $value,
];
array_push($newRows, $horizontalRow);
}
return $newRows;
}
)))
->pipe($this->dataStore("result"));
After the process your datastore "result" will be a table with 2 columns "field" and "value" with similar format to your screenshot. Rgds,
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo