KoolReport's Forum

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

Column rename #687

Closed Eugene opened this topic on on Feb 18, 2019 - 1 comments

Eugene commented on Feb 18, 2019

Hi, I try to rename some columns for CSV source but in the table get column0, column1... etc

 $this->src("att")
            ->pipe(new ColumnRename(array(
                "Column 0" => "attcode",
                "Column 1" => "dateTime",
                "Column 2" => "in_out",
                "Column 3" => "type",
            )))
            ->pipe(new Limit(array(50)))
            ->pipe($this->dataStore("attendance"));

//view file:
 Table::create(array(
            "dataStore" => $this->dataStore('attendance'),
));

koolreport\core\DataStore Object ( [rows:protected] => Array ( [0] => Array ( [Column 0] => 20001 [Column 1] => 2017-04-25 15:17:55 [Column 2] => 0 [Column 3] => 1 ) [1] => Array ( [Column 0] => 10001 [Column 1] => 2017-04-25 15:29:30 [Column 2] => 0 [Column 3] => 1 ) [2] => Array ( [Column 0] => 200

Eugene commented on Feb 18, 2019

Ups.. I think it was a cache issue... resolved

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
None yet

None