KoolReport's Forum

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

Datatable new release no longer showing the button to export to Excel #3437

Open paulo opened this topic on on Apr 22 - 10 comments

paulo commented on Apr 22

Hi all, After the last update, my Database report is no longer showing the export button. Nothing was changed in the report, but all reports using Datatable the buttons disappeared. I looked at here and nothing changed in the example: https://www.koolreport.com/examples/reports/datagrid/plugins/ All reports are having same issue.

Thanks Please help

I inspected and it seems the reports now are throwing the following error: KoolReport.js:106 TypeError: Cannot read properties of undefined (reading 'ConvertToClientFunction')

at Reporting:MotorcoachReport:4241:35
at KoolReport.js:105:25
at Array.forEach (<anonymous>)
at Object.checkScriptsAndCallback (KoolReport.js:102:20)
at Object.onScriptLoaded (KoolReport.js:88:14)

Reporting:MotorcoachReport:1 [Deprecation] -ms-high-contrast is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard. [NEW] Explain Console errors by using Copilot in Edge: click

     to explain an error. 
    Learn more
    Don't show again

Reporting:MotorcoachReport:1 [Deprecation] -ms-high-contrast is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard. Reporting:MotorcoachReport:1 [Deprecation] -ms-high-contrast is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard.

DataTables::create(array(
    "dataStore" => $this->dataStore('ToursByInterest'),
    "plugins" => ["Buttons"],
    "options" => array(
        "searching" => true,
        "fixedHeader" => true,
        "showFooter" => "top",
        "dom" => 'Bfrtip',
        "buttons" => [
            "copy", "csv", "excel", "pdf", "print", "colvis"
        ],
    ),
    "cssClass" => [
        "table" => "table table-bordered table-striped table-hover"
    ],
));
?>
Sebastian Morales commented on Apr 23

Would you pls let us know your Datagrid package version, which could be found in koolreport/datagrid/composer.json file, your PHP version and your browser type?

paulo commented 6 days ago

Hi thanks for getting back. I tried incognito mode. PHP 8.2

    "koolreport/datagrid": "8.0.1",

"koolreport/pro": "*=6.6.3",

it was working fine until got updated to this version. Now, all reports are having this issue. I am using EDGE, but others are using Chrome. Issue in both browsers. Thanks

Sebastian Morales commented 6 days ago

Would you pls open your browser's dev tool (F12) and reload the page to see if there is any error message in console?

paulo commented 6 days ago

yes, same error of my first message. I tired to composer update again, but nothing changed. thanks! TypeError: Cannot read properties of undefined (reading 'ConvertToClientFunction')

at Reporting:MotorcoachReport:4289:35
at KoolReport.js:105:25
at Array.forEach (<anonymous>)
at Object.checkScriptsAndCallback (KoolReport.js:102:20)
at Object.onScriptLoaded (KoolReport.js:88:14)

Sebastian Morales commented 3 days ago

It looks like you would need to update koolreport/core to a newer version 6.6.x beside koolreport/datagrid as well. If there is any problem let us know.

paulo commented 3 days ago

Thanks. Sorry, I have the pro version. So, I don't need to install core, correct? Pro is 6.6.3

This issue is rather urgent as we are in the peak of our busy season and use a lot the export functions.
Thanks

Here is what I have: "koolreport/dashboard": "*",

    "koolreport/datagrid": "*",
    "koolreport/export": "*",
    "koolreport/blade":"*",
    "koolreport/pro": "*",
paulo commented 15 hours ago

Hello, can someone please help here? thanks

paulo commented 15 hours ago

View uses this: use \koolreport\datagrid\DataTables; use \koolreport\inputs\Select2;

David Winterburn commented 15 hours ago

Please delete all koolreport_assets folders in your public folder if there is any since the old koolreport.js file might not be updated there. In any case open your browser dev tool, go to tab Network and find out the path of koolreport.js and let us know tge result.

paulo commented 14 hours ago

thank you very much. This seems to have worked, I also had to clean up browser cache. Is there a way to force the report not to be cached? Thank you very much again for jumping into this issue. Paulo

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
bug
help needed

DataGrid