Description
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
- 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)
- Open the map record from the listview
- 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