KoolReport's Forum

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

Unable to pass parameter from controller to report.php file.. #1302

Closed iRiyada opened this topic on on Feb 16, 2020 - 3 comments

iRiyada commented on Feb 16, 2020

In controller file I am passing The following parameters

$report = new KpiValuesReport(array("language"=>$language,"kpi"=>$kpi,"mtp"=>$mtp));

And in report.php, inside settings I am trying to access that parameter

$kpi=$this->params["kpi"];

It throws error undefined index 'kpi'

KoolReport commented on Feb 16, 2020

You can access those parameters inside KpiValuesReport.php or its view. May you tell me about the report.php file, it seems to me that the file is unrelated to the kpi value reports, what is the file doing?

iRiyada commented on Mar 3, 2020

report.php was mentioned wrongly. Actually the error was because I tried to reinitialize the KpiValuesReport object without parameters. Mistake on my side. Now it is working. Thank you.

KoolReport commented on Mar 3, 2020

I see. Thats great that you find out the root cause. I will close the case.

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
solved

None