Hi,
$render_page = new PageView(array(
"data_e"=>$details_report,
));
$render_page-> run()->render();
childReport file-
protected function defaultParamValues()
{
return array(
"dateRange_page"=>array(
'2017-05-09' , '2018-09-30'
),
);
}
protected function bindParamsToInputs()
{
return array(
"dateRange_page"=>"dateRange_page",
);
}
function setup()
{
$this->src("database")->query("SELECT STR_TO_DATE(page_visit_date,'%Y-%m-%d') AS DATE, page_visit FROM event_page_visits WHERE event_id = '6672'
AND DATE(page_visit_date) BETWEEN :start AND :end GROUP BY DAY(page_visit_date) ;")
->params(array(
":start"=>$this->params["dateRange_page"][0],
":end"=>$this->params["dateRange_page"][1],
))->pipe($this->dataStore("report_pageevent"));
}
childReport.vew ---
<div class="form-group date_div" style="text-align:center;">
<?php
DateRangePicker::create(array(
"name"=>"dateRange_page",
))
?>
</div>
<?php
if(isset($this->params["dateRange_page"]) && $this->params["dateRange_page"]!=null)
{
?>
<div class="form-group ">
<button onclick="pageView_kool()" class="btn btn-success">View</button>
</div>
<?php
}
?>
<script type="text/javascript">
function pageView_kool()
{ subReport.update("EventPageViewSub",{
"dateRange_page":$('#dateRange_page').val(),
});
}
</script>
when I submit button its give Disallowed Key Charac error ....