KoolReport's Forum

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

A number of renderings on different pages #1691

Open Richb201 opened this topic on on Oct 28, 2020 - 1 comments

Richb201 commented on Oct 28, 2020

I have a number of places in my app where I am using Koolreport. For example I am using it in the dashboard and I am also using it in my report generation tool. Additionally I am using it to build surveys.

Rather than open the database 3 times, I'd like to open it once when the program initializes and for each report to use that same handle. Right now each report is like a standalone example. My application, uses Codeigniter and thus opens the same database for its own use. Can I just open the database once in my constructor and share the file handle? Have you done this?

Sebastian Morales commented on Oct 29, 2020

How about creating a parent report, then making all your other reports extend the parent one. Thus they would share the same settings() method which use the same connection for each datasource. Rgds, Seb.

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