Export EXCEL files on the server side

Re-Open
Subodh Singh Dongol asked on January 27, 2022

Hello,
We have a use case where we need to export EXCEL files of the Flexmonster tables on the backend/server side, and attach and send the exported files to users.
While looking for a solution, I came across this solution: https://github.com/flexmonster/pivot-puppeteer
I tried out the solution and it works fine as is. It exports files in the storage folder with out a issue. But the problem is when I tried adding the license key and pointing to flexmonster package in node_modules folder in index.html file, nothing happens. (Attached is a image showcasing the modification) Files do not get exported; rather the solution gets stuck.
If I replace back the code to point to the CDNs it works fine.
I could not really figure out why the code does not work when pointing to flexmonster files in node modules, so I was hoping to get some insight if possible.
Flexmonster version being used: 2.9.17

Attachments:
flexmonster_ticket.JPG

4 answers

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 31, 2022

Hello, Subodh,

Thank you for reaching out to us.
Our team is currently working on your question. We will get back to you soon.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster January 31, 2022

Hello, Subodh,
 
Please find our answer below.
It seems that the issue is caused by the fact that Puppeteer can't reach the Flexmonster if its script is located in your file system. We will research possible solutions and provide you with results ETA March 7.
You are welcome to write to us in case further questions arise.

Kind regards,
Nadia

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster March 8, 2022

Hello, Subodh,
 
Hope you are doing well.
 
We are pleased to inform you that we created a new branch with the solution flexmonster-from-nodemodules. You are welcome to check it by the following link: https://github.com/flexmonster/pivot-puppeteer/tree/flexmonster-from-nodemodules
 
You are welcome to write to us in case further questions arise.
 
Kind regards,
Nadia

Public
Subodh Singh Dongol March 8, 2022

Hello,
Thank you for the update. I will check out the solution and reach out if there's any further question.
Sincerely,
Subodh 

Please login or Register to Submit Answer