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 - 12 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.

Suvindran commented on Sep 11

Hi any update?

Suvindran commented on Sep 11

Just updated koolreport and current dashboard version is 4.1.7

Laravel Framework

KoolReport commented on Sep 12

If you remove the ->default(true) in both RevenueBoard and InvoiceBoard, does it work?

Suvindran commented on Sep 12

No i have removed ->default(true) on all board and its still same.

404 Not Found The dashboard you are looking for is not existed or temporarily disabled!

KoolReport commented on Sep 13

Let remove all those lines:

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

does it work?

Suvindran commented on Nov 8

Hi i have try your suggestion but still same. Unable to navigate. Is it compatible with Laravel?

Sebastian Morales commented on Nov 8

Pls try to run our dashboard-demo without Laravel and let us know whether this happens:

https://github.com/koolreport/dashboard-demo

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