Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable TableTools .swf scripts in jjwg_Maps module are not working #10420

Open
gp-lnuff opened this issue May 6, 2024 · 1 comment
Open

Comments

@gp-lnuff
Copy link

gp-lnuff commented May 6, 2024

Issue

After making a Map record and opening it from the List View, the map with markers is shown above, while a table with the related records is shown below it. On the top right of the table are several buttons: Copy, CSV, XLS, PDF, and Print. These buttons are not working as expected.

Expected Behavior

Pressing the Copy button should copy the contents of the datatable to the clipboard, pressing the CSV button should prompt the user to save a .csv file or start a download for a .csv file, pressing the PDF button should prompt the user to save a .pdf file or start a download for a .pdf file, and pressing the XLS button should prompt the user to save a .xls file or start a download for a .xls file

Actual Behavior

The mentioned buttons are completely unresponsive. The Print button seems to be working as intended though

Possible Fix

It seems these buttons rely on .swf scripts and it's possible that they have been deprecated since the dismissal of Flash.
A possible fix could be to look into a newer version of DataTable Table Tools (which seems to be the source of these buttons) and how to integrate it into SuiteCRM.

Steps to Reproduce

  1. Create a Map Record with at least 1 marker (to do this I suggest setting a very large range for your map, such as 10000km)
  2. Open the map record from the listview
  3. Click on the CSV, XLS, PDF and Copy buttons on the top right of the datatable

Context

After setting up Google Maps we realized during testing that these buttons were unresponsive. It's not a particularly critical deal and we've opted to hide these buttons by removing their definition in https://github.com/salesagility/SuiteCRM/blob/hotfix/modules/jjwg_Maps/views/view.map_markers.php#L694-L728

This issue is being opened at the request of @pgorod

Your Environment

  • SuiteCRM Version used: 7.14.3
  • Browser name and version: Tested on Chrome 124.0.6367.119 (64 bit) and Firefox 125.0.3 (64 bit)
  • Environment name and version (e.g. MySQL, PHP 7): MySQL 8.0.36 , PHP 8.2.17
  • Operating System and version (e.g Ubuntu 16.04): Tested on Windows 10 and 11
@SuiteBot
Copy link

SuiteBot commented May 6, 2024

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/maps-module-hide-export-buttons/92638/6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants