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 - 12 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 on Apr 24

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 on Apr 25

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 on Apr 25

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 on Apr 28

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 on Apr 28

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 on Apr 30

Hello, can someone please help here? thanks

paulo commented on Apr 30

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

David Winterburn commented on Apr 30

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 on Apr 30

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

Sebastian Morales commented on May 2

Paulo, that's great to hear the problem is solved. For browser cache, just ask users to fully reload the page (Ctrl+F5 maybe). For server cache, sometimes server admin would have to delete koolreport_assets themselves if public folder is used. However, for future releases we will make it so that a newer version of KoolReport.js could be auto published over the older version one in koolreport_assets.

paulo commented on May 2

awesome! thank you very much. If it can be automated, even better because sometimes the composer updates during the new code deployment process and gets missed. Thank you!

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