🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all hot features!
Get Free Trial

Generate report in backend(server-side)

Heman asked on June 7, 2019

I need to send report on daily basis based on the report customized by the user. I have saved the report slice against respective user and will configure the scheduler (daily,weekly,monthly).
Back-end service will generate the report without any kind of manual interaction and will send report as attachment in email.
Is there any API configuration available which enables back-end report generation?

1 answer

Vera Didenko Vera Didenko Flexmonster June 10, 2019

Hello, Heman,
Thank you for your question.
We would like to confirm that generating the report on the backend is possible.
The general idea lies in using the headless browser technique to generate a page with Flexmonster in the browser, not displayed in the Interface. This way you will have access to Flexmonster on the backend and you will be able to use the API calls to generate the report (export it, for example, to image or PDF) in order to attach it in the scheduled email.
There are several headless browser tools which can be used for this.
You are welcome to see our example using PhantomJShttps://www.flexmonster.com/doc/export-and-print/#!phantomjs.
Also, please see our example on GitHub of how this can be achieved with PhantomJS.
Please let us know if this helps.
Feel free to contact us in case of questions.
Best Regards,

Please login or Register to Submit Answer