Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

How do I incorporate buttons in the page to change JSON source?

Nathan Wells asked on October 9, 2018

Hello,
I am interested to find out how I can incorporate buttons with my pivot table to switch between JSON data sources. They would all be inline JSON.
Also, I have JSON data in my pivot table but I have to refresh the page to have the data with the table appear. Is there a good workaround?
Thank you!

1 answer

Public
Dmytro Zvazhii Flexmonster October 10, 2018

Hello Nathan,
Thank you for writing. You can easily add the buttons you want. Please find the example here: https://jsfiddle.net/flexmonster/Lxmjfuh4/.
The recommended approach to reload inline data is to use setReport() API call. You can find more information about it here: https://www.flexmonster.com/api/setreport/.
Please let us know if everything works fine for you.
Regards,
Dmytro

Please login or Register to Submit Answer