Hi
Is there any way to call the function of flexmonster on the server side? such as exportTo() etc.,
We want to perform batch calculations based on the set report, and store the results of the report calculations in the table of the database. In this way, the user can directly access the result data calculated by the report through the database instead of the page.
In this process, the backend needs to obtain the report data calculated by flexmonster, which can be obtained through the exportTo() function, but how does the backend call this function?
Hello, Carrie!
Thank you for contacting us.
Kindly note that Flexmonster is a client-side JavaScript library used to visualize data on grids and charts. Our API calls are not designed to be called from the server.
However, the exportTo()
API call can be used to save the data from Flexmonster on the server as follows:
flexmonster.exportTo('csv', {
destinationType : 'server',
url : //your server endpoint
});
We hope it helps.
Feel free to contact us in case of any other questions.
Regards,
Solomiia