How desactivate the download(report.json) in the event save?

Answered

i’m actualy using angular 8, when i click in the save button. it’s always donwload the file report.json. thanks u

1 answer

WebDataRocks Team WebDataRocks January 15, 2020

Hi Anthony,
 
Thank you for writing to us.
 
Please note that the “Save” toolbar button is handled with saveHandler, which is by default set to download the JSON file containing the report object.
 
If you would like to redefine the functionality of the “Save” button, feel free to do so by using the beforetoolbarcreated event, which allows you to override the default toolbar functionality and modify it according to your needs.
 
Moreover, in case you would prefer to remove the possibility to save the report using UI altogether, you can delete the corresponding button from the toolbar.
 
More information on toolbar customization can be found here: https://www.webdatarocks.com/doc/customizing-toolbar/
 
We hope this helps.
 
Best regards,
WebDataRocks Team