KoolReport's Forum

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

Get param input from another param #1530

Closed David Vanacore opened this topic on on Jul 14, 2020 - 2 comments

David Vanacore commented on Jul 14, 2020

Is it possible to get a param input from another param, instead of an input? I was hoping to use multiple params in a query with the same input value.

David Vanacore commented on Jul 14, 2020

I figured it out.

If I set it up this way, I'm able to have one input sent to two different params.

protected function defaultParamValues()
{
    return array(
        "startDate"=>"",
        "startDate2"=>"",
        "endDate"=>"",
        "endDate2"=>""
    );
}

protected function bindParamsToInputs()
{
    return array(
        "startDate"=>"startDate",
        "startDate2"=>"startDate",
        "endDate"=>"endDate",
        "endDate2"=>"endDate"
    );
}
David Winterburn commented on Jul 14, 2020

Yes, that's a great method to capture one input to multiple params. Thanks!

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
None yet

None