We tried to do this in one operation in onLoadData:
foreach ($group1 as $rowx)
{
// First part
$c = 'awhrm-daytype-'.$rowx->d6zoe_awhrm_workingtime___daytype;
$rowx->d6zoe_awhrm_workingtime___workingdate = '<div class="'.$c.'">' . $rowx->d6zoe_awhrm_workingtime___workingdate . '</div>';
// Second part
if ( $rowx->d6zoe_awhrm_workingtime___timecode_raw < 1) {
$d = 'awhrm-timecode-warning';
$rowx->d6zoe_awhrm_workingtime___Hours = '<div class="'.$d.'">' . $rowx->d6zoe_awhrm_workingtime___Hours . '</div>';
}
}
Second part gives no result at all. But putting it in its own php_event its working fine.