Hi,
I already have a working report consisting of data table. Then I added 2 new columns "Rates" and "Instalments" using copyColumn. Y1 Rate and Y2 Rate (both are string type) are concatenated with "<br/>" and output to "Rates" column using custom function. And Y1 Instalment and Y2 Instalment (both are integers) are concatenated and output to Instalments column using custom function as well.
Below is the output I got. The column in question is "Instalments" as the output fails display.
Below are the sample codes...
`
->pipe(new CalculatedColumn(array(
"Y1 Instalment"=>"....",
"Y2 Instalment"=>"....",
)))
->pipe(new CopyColumn(array(
"Rates"=>"Y1 Rate",
"Instalments"=>"Y1 Instalment"
)))
->pipe(new Custom(function($row){
$row["Rates"] = $row["Rates"]."<br/>".$row["Y2 Rate"];
$row["Instalments"] = "$" . number_format($row["Instalments"], 2) . "/mth<br/>$" . number_format($row["Y2 Instalment"], 2) . "/mth";
return $row;
}))