KoolReport's Forum

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

CustomDrilldown through a table #462

Open Eric opened this topic on on Sep 12, 2018 - 1 comments

Eric commented on Sep 12, 2018

Hello,

How can I drilldown tru a table using custom drilldown. When I use a PieChart it works fine as follow:

PieChart::create(array(
        "dataStore"=>$this->dataStore('my_report'),
        "columns"=>array(
            "planner"=>array(
                "label"=>"Planners",
            ),
            "status"=>array(
                "label"=>"status",
            ),
        ),
        "clientEvents"=>array(
            "rowSelect"=>"function(params){
                  $drilldown.next({status:params.selectedRow[0]});
            }",
        ),
    ));

However when I use a table as follow nothing happens:

Table::create(array(
        "dataStore"=>$this->dataStore('my_report'),
        "columns"=>array(
            "planner"=>array(
                "label"=>"Planners",
            ),
            "status"=>array(
                "label"=>"status",
            ),
        ),
        "clientEvents"=>array(
            "rowSelect"=>"function(params){
                  $drilldown.next({status:params.selectedRow[0]});
            }",
        ),
    ));

Thanks,

KoolReport commented on Sep 14, 2018

Please go to this post

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

DrillDown