Currently i have a Drilldown view in whichin we filter data inside DataTables, everything works regarding params that are used by drildown and sent within drilldown levels..but after the first drilldown.next is executed, other params specified in scope are missing, i can see that they are defined in $scope variable, but i don't know how to send them next to drilldown_params
DrillDown::create(
array(
"name" => "testDrillDown",
"title" => " ",
"scope" => array(
"room_types" => $this->params["room_types"],
"users" => $this->params["users"],
"space_statuses" => $this->params["space_statuses"],
"report_type" => $this->params["report_type"],
"facility" => $this->params["facility"],
"date" => $this->params["date"],
),
"levels" => array(
array(
//Level 1: Show all per room status
"title" => "per Status",
"content" => function ($params, $scope) {
$params = json_encode($scope);
DataTables::create(
array(
"dataSource" => $this->getTableQuery("start_space_status"),
"options" => array(
"searching" => true,
"select" => true,
),
"clientEvents" => array(
"select" => "function(e,dt,type,indexes){
var data = dt.rows( indexes ).data()[0];
testDrillDown.next({status_drill:data[0]})
}",
),
)
);
},
),
array(
//Level 2: Show all with status per room type
"title" => function ($params, $scope) {
return "Status - " . $params["status_drill"];
},
"content" => function ($params, $scope) {
DataTables::create(
array(
"dataSource" => $this->getTableQuery(
"start_space_status, room_type",
"AND start_space_status = '{$params['status_drill']}'"
),
"options" => array(
"searching" => true,
"select" => true,
),
"clientEvents" => array(
"select" => "function(e,dt,type,indexes){
var data = dt.rows( indexes ).data()[0];
testDrillDown.next({room_type_drill: data[0]});
}",
),
)
);
},
)
)));