KoolReport's Forum

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

Load Dashboard and namespace #2403

Open Prem subramaniam opened this topic on on Oct 22, 2021 - 3 comments

Prem subramaniam commented on Oct 22, 2021

When boostraping the dashboard we want to have groups of menus with the same sub menu names. Example ->

Program -1 :
- > Report A  -> \adminboard\pgm1\reporta
-> Report B  -> \adminboard\pgm2\reportb

Program - 2:
-> Report A -> \adminboard\pgm2\reporta
-> Report B -> \adminboard\pgm2\reportb

Now if we want to load report B from report A, since the loadDashboard is not functioning at the namespace level we end of having to rename the file structure which gets confusing. Is there an alternative way to make use of loadDashboard while keeping the namespace.

Prem subramaniam commented on Oct 22, 2021

Nevermind it looks like it is the file name within the namespace.

Prem subramaniam commented on Oct 22, 2021

Sorry I don't have a solution. I still need help with routing by namespace. It will not be possible to have unique file names.

KoolReport commented on Oct 26, 2021

With the report with same class name, you can name it differently like following:

    "Report A"=>ReportA::create()->name("pgm1.ReportA"),
    ...
    "Report A"=>ReportA::create()->name("pgm2.ReportA");

As long as each report has different name (consider as ID) then all will be fine.

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

Dashboard