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 3 days ago - 3 comments

paulo commented 3 days ago

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 2 days ago

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 11 hours 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 4 hours 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?

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

DataGrid