Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Option for storing AdHoc report on Central location

Answered
nisha asked on September 1, 2020

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!

4 answers

Public
Vera Didenko Flexmonster September 2, 2020

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:

  1. Using the load() API call: https://www.flexmonster.com/api/load/
  2. Using the setReport() API call: https://www.flexmonster.com/api/setreport/
  3. Through the “Open” Toolbar Tab. We would like to mention that it is possible to customize the Toolbar. This means you can add a new Tab or extend the existing Tab’s menu to provide additional functionality to your users. For more details, please see the following guide: https://www.flexmonster.com/doc/customizing-toolbar/.

 
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

Public
nisha September 3, 2020

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

Public
Vera Didenko Flexmonster September 3, 2020

Hello, Nisha,
 
Thank you for your response. 
 
For such cases, we kindly recommend the following approach: 

  1. Use the getReport() API call to get the report: https://www.flexmonster.com/api/getReport/
  2. Create a custom save method that would provide the possibility to specify request headers and desired parameters.

 
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

Public
Vera Didenko Flexmonster October 6, 2020

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

Please login or Register to Submit Answer