KoolReport's Forum

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

How to pass request input paranmeters and values in MyReport Model? #2682

Open Tuhiran opened this topic on on May 18 - 1 comments

Tuhiran commented on May 18

I'm building a custom report by aloowing user to enter RAW DB query through a form to the Myreport.php setup() model

Sebastian Morales commented on May 21

You can pass outside parameters to KoolReport object like this:

// index.php
$outsideParams = array(...);
$report = new MyReport($outsideParams);

//MyReport.php
function setup()
{
    print_r($this->params); //$this->params of the report would hold any key, value of $outsideParams
}

Let us know if this is what you want. Tks,

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
help needed

Laravel