KoolReport's Forum

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

Lauch other dashboard from button #2879

Open fiuncho opened this topic on on Nov 21 - 1 comments

fiuncho commented on Nov 21

Dear team

I have this button an action on a table:

        Button::create('tdate')->label("")->type("primary")
            ->size("sm")
            ->text("Detail")
            ->onClick(function($value, $row){
                return Client::dashboard("InstrumentDayBoard")
                                    ->load([
                                        "p_temperatures"=>"global", 
                                        "pdays"=>1, 
                                        "psorting"=>"order by moment desc",
                                        "p_tdate"=>$row["tdate"],                        
                                    ]);
                
            }),         

Never open the new dashboard called "InstrumentDayBoard" (and exists). the action response is:

What am I doing wrong?.

The idea is: Open a new dashboard from button on table,

Best

Sebastian Morales commented on Nov 22

Pls check Dashboard's client commands:

https://www.koolreport.com/docs/dashboard/client

In your case I guess the navigate command could be what you need:

https://www.koolreport.com/docs/dashboard/client/#common-navigate

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