Hi Team,
By default if we generate AdHoc report or custom report through flexmonster, it will get stored locally on user's machine (.json file available locally).
Could you suggest options available from flexmonster for storing Adhoc or Custom report on central location instead of storing it locally?
We want the Custom report to be stored on central location so that other users can also access it.
Thanks!
Hello,
Thank you for your question.
For saving Flexmonster reports to a central location, we kindly recommend using the save()
API call. Via the save()
API call it is possible to save the report to a server, for example:
flexmonster.save({
filename: 'myreport.json',
destination: 'server',
url: 'http://yourserver.com/your_script_for_saving_the_report'
});
Note: the server-side script should be created on your back end to save reports to the server. And the URL parameter is the path to this server-side script.
For more details about the save()
API call, please see the following guide: https://www.flexmonster.com/api/save/.
The previously saved reports can be loaded into Flexmonster in the following ways:
load()
API call: https://www.flexmonster.com/api/load/
setReport()
API call: https://www.flexmonster.com/api/setreport/
Please let us know if this would work fine for your case. If further questions arise, please feel free to reach out.
Looking forward to your reply.
Kind regards,
Vera
Hi Vera,
Thanks for your reply.
Can we pass "requestHeader" to the API URL while saving the report to central location in flexmonster.save()
like flemonster does it for exportTo- https://www.flexmonster.com/question/exporting-excel-to-remote-server/
Please suggest ways to authorize server api while sending the request to server.
Regards,
Nisha
Hello, Nisha,
Thank you for your response.
For such cases, we kindly recommend the following approach:
getReport()
API call to get the report: https://www.flexmonster.com/api/getReport/
In addition, we would like to mention that it is possible to customize the Toolbar. This means you can overwrite the default "Save" Tab's behavior or add a new Tab for your custom save method.
Please let us know if this works.
Looking forward to your reply.
Kind regards,
Vera
Hello, Nisha,
We are glad to inform you that now requestHeaders
are supported for load()
and save()
API calls.
This is available in the latest version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component. Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
Please let us know if everything works.
Kind regards,
Vera