KoolReport's Forum

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

Unable to navigate within boards #2996

Open Suvindran opened this topic on on Feb 23, 2023 - 5 comments

Suvindran commented on Feb 23, 2023

Hi, I have just updated Koolreport pro & dashboard to the latest version and facing some issues with dashboard sidebar linkage within the boards.

Error: 404 The dashboard you are looking for is not existed or is temporarily disabled!

Previously it works fine before I update it to the latest version. Any suggestion?

KoolReport commented on Feb 23, 2023

May I see some of code. Do you use any kinds of permission for dashboard.

Suvindran commented on Feb 23, 2023

No, I didn't set any permission to access the dashboard.

Here's the code:

App.php > sidebar()

    protected function sidebar()
    {
        return [
            "Sales"=>Group::create()->icon("fa fa-line-chart")->sub([
             "Invoices"=>InvoiceBoard::create(),
	     "Revenues"=>RevenuesBoard::create(),

            ])
        ];
    }

InvoiceBoard.php

    protected function onInit()
    {
   
        $this->default(true)
            ->title("Home")
            ->hidden(false)
            ->icon("fa fa-home")
            ->updateEffect("fade");
    }

 protected function widgets()
    {
        return [
            Html::h2("Invoice List"),
            Row::create()->sub([
                Row::create(),
                InvoiceDateRange::create()->width(1/3),
            ]),
            Row::create()->sub([
                TotalInvoice::create()->type("primary")->width(1/3)->lazyLoading(true),
                InvoiceAmount::create()->type("warning")->width(1/3)->lazyLoading(true),
                InvoiceStatus::create()->type("success")->width(1/3)->lazyLoading(true),    
               
            ]),
            Panel::create()->header("Invoice List")->type("danger")->sub([
                Dropdown::create("exportOptions")
                ->title("<i class='far fa-file-pdf'></i> Export To PDF")
                ->items([
                    "Export Current Page"=>MenuItem::create()
					
					
                        ->onClick(
                            Client::showLoader().
                            Client::widget("InvoiceTable")->exportToPDF("Invoices - Current Page",["all"=>false])
                        ),
                    "Export All"=>MenuItem::create()
                        ->onClick(
                            Client::showLoader().
                            Client::widget("InvoiceTable")->exportToPDF("All Invoice",["all"=>true])
                        ),
                ])
                ->align("right")
                ->cssStyle("margin-bottom:15px;")
                ->cssClass("text-right"),
           
            InvoiceTable::create()->lazyLoading(true),   
        ]),

        ];
    }
KoolReport commented on Feb 23, 2023

That's strange. Is it possible to send more source code, may be via our email support@koolreport.com so that I can inspect further. So which dashboard is missing, the InvoicesBoard or RevenueBoard?

Suvindran commented on Feb 23, 2023

Okay sure.

All the dashboard doesn’t link up. when I revert back to old version, it works!

Thanks, I will email the source code.

KoolReport commented on Feb 23, 2023

Received your email, I will investigate further.

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