How to save multiple pivot table config and data in a single button.

Resolved
Luciano Carvalho asked on February 20, 2018

Hello everyone! I have a page that contains multiple pivot tables, is there any way to, a single button save the configuration and all database?
I wait, hugs!

1 answer

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster February 21, 2018

Hello Luciano,
Thank you for writing. We suggest using the following approach: when you create some pivot instance you need to store the reference on it to some data structure for example array. After that, you can write a function which calls saving function for each pivot instance. After that, you can bind this function to some button. Also, please consider the idea of using the extended functionality of save() API call. It allows storing report.json file directly to the server. Please find examples here - https://www.flexmonster.com/api/save/. Also, you can handle the saving process on your own. In such case, please use getReport() API call. It returns the object with all the necessary data. Please find the example here - https://www.flexmonster.com/api/getreport/.
Let us know if the information above was helpful for you.
Regards,
Dmytro.
 

Please login or Register to Submit Answer