KoolReport's Forum

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

Passing database name #499

Open otto@atzwanger.com opened this topic on on Oct 18, 2018 - 2 comments

otto@atzwanger.com commented on Oct 18, 2018

Hello to all,

first congratulation to this nice product.

I am also new to PHP. Therefore I am posting very basic questions. Please excuse.

I would like to call

koolreport\vendor\koolphp\koolreport\examples\reports\basic\sales_by_customer\index.php

passing the variable for filePath of the database.

koolreport\vendor\koolphp\koolreport\examples\reports\basic\sales_by_customer\SalesByCustomer.view.php

    "filePath"=>"../../../../../../../../y/tweb.examples/CSV/report.csv",

Is there please a sample how to do that best.

Thank you in advance Otto

otto@atzwanger.com commented on Oct 18, 2018

Hello, I think I found the answer. https://www.koolreport.com/forum/topics/1

Best regards,

Otto

KoolReport commented on Oct 19, 2018

That's correct. After passing the parameter to report like the name of database, you can get those parameters inside settings() function

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

None