Dear Team, thanks for the support and response but still I'm getting issue in passing the value and I have followed your instructions but not achieved
SELECT * FROM TB
WHERE tb.brnchName IN (:brnchName) AND ce.custCreatedDate>=:start AND ce.custCreatedDate<=:end
GROUP BY em.employeeId
")
->params(array(
":start"=>$this->params["dateRange"][0],
":end"=>$this->params["dateRange"][1],
":tblemployeedetails"=>$this->params["tblemployeedetails"],
":brnchName"=>$this->params["brnchName"]
))
From the above query i need to pass the values to the another query of sub report which is below and I have provided as per your instructions.
SELECT * FROM TB
WHERE tb.brnchName IN (@brnchName) AND em.employeeFirstName=@employeeFirstName AND ce.custCreatedDate>=@start AND ce.custCreatedDate<=@end
->params(array(
"@start"=>$this->params["start"],
"@end"=>$this->params["end"],
"@brnchName"=>$this->params["brnchName"],
"@employeeFirstName"=>$this->params["employeeFirstName"]
))
And I also implemented the view and _GET code also. And I have provided the code below.
"formatValue" => function ($value, $row) {
return "<a href='performanceenquiryindex.php?employeeFirstName=" . $row['employeeFirstName'] . " && brnchName=" . $row['brnchName'] . " && start=" . $value['start'] . " && end=" . $value['end'] . "'target=\"subreport\">$value</a>";
},
),
This is the _GET code of index file of the sub report.
require_once "performanceenquiry.php";
$PerformanceEnquiry= new performanceenquiry([
"employeeFirstName"=>$_GET["employeeFirstName"],
"brnchName"=>$_GET["brnchName"],
"start"=>$_GET["start"],
"end"=>$_GET["end"]
]);
I have provide you the whole code which i have implemented please could you help me where i have done the mistake please.