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 6 days ago - 5 comments

paulo commented 6 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 5 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 3 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 3 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 3 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 4 hours 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.

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