I have a drilldown report with multiselect. For the first selection all is working fine, but clicking on year column [No data available in chart] is displayed, because (i think) multiselect values are not passed.
<?php
class SalesByZones extends \koolreport\KoolReport
{
use \koolreport\inputs\Bindable;
use \koolreport\inputs\POSTBinding;
protected function defaultParamValues()
{
return array(
"categories" => array(
"0"
),
);
}
protected function bindParamsToInputs()
{
return array(
"categories"=>"categories",
);
}
public function settings()
{
return array(
"dataSources"=>array(
"sales"=>array(
"connectionString"=>"",
"username"=>"",
"password"=>"",
"charset"=>"utf8"
)
)
);
}
function setup()
{
$node = $this->src('sales')
->query("SELECT * FROM services WHERE company_id=".CURRENT_LOGIN_COMPANY_ID." AND is_product=0 AND zone_number>0")
->pipe($this->dataStore('categories'));
}
}