KoolReport's Forum

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

Text in Table data #68

Open zenon opened this topic on on Aug 10, 2017 - 1 comments

zenon commented on Aug 10, 2017

Hi,

How can I do this? (from Table 1 to Table 2)

Appreciate your help.

Thanks.

KoolReport commented on Aug 10, 2017

Hi zenon,

You may use "formatValue' for date columns:

Table::create(array(
    "columns"=>array(
        "date"=>array(
            "label"=>"",
            "formatValue"=>function($value){
                return "Date: ".$value;
            }
        )
    )
))

The formatValue can be set function. This function will receive the date as parameter (stored in $value variable). You will return any display for this column. Please format the date if you need to.

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