KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Multiple lines in one row #93

Open zenon opened this topic on on Aug 26, 2017 - 4 comments

zenon commented on Aug 26, 2017

Hi,

(Each value in the table is resulted from the SQL statement.)

Could the above be done, by placing multiple lines in one row?

Appreciate your help.

Thank you very much.

zenon commented on Aug 26, 2017

I figured it out already. =)

KoolReport commented on Aug 26, 2017

Great! What have you done?

zenon commented on Aug 26, 2017

I just trial and error, referring to topic #91.

->pipe(new CalculatedColumn(array(
            "1"=>array(
                "exp"=>"'x <br/> y <br/> m <br/> n'",
                "type"=>"string"
            ),

            "2"=>array(
                "exp"=>function($data){
                    return $data["amount_01"]."<br/>".$data["amount_02"]."<br/>".$data["amount_03"]."<br/>".$data["amount_04"];
                },
                "type"=>"string",
            ),
)))
KoolReport commented on Aug 27, 2017

That's great!

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None