Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi Thomas,
Please open the file koolreport/datagrid/DataTables.php
and replace the whole function buildDataRows with this one:
protected function buildDataRows($rowType = 'assoc')
{
$this->dataRows = [];
$this->dataStore->popStart();
while ($row = $this->dataStore->pop()) {
$dataRow = [];
foreach ($this->showColumnKeys as $ci => $cKey) {
$cMeta = Util::get($this->cMetas, $cKey, []);
$formatValue = Util::get($cMeta, "formatValue", null);
$key = ($rowType === 'assoc') ? $cKey : $ci;
if (isset($row[$cKey]) || is_callable($formatValue)) {
$value = ($cKey !== "#") ?
Util::get($row, $cKey, $this->emptyValue)
: ($ci + $cMeta["start"]);
ob_start();
echo $this->formatValue($value, $cMeta, $row, $cKey);
$dataRow[$key] = ob_get_clean();
}
else {
$dataRow[$key] = $this->emptyValue;
}
}
$this->dataRows[] = $dataRow;
}
}
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo