Get Free Trial

How to save configuration without data

Chris K asked on December 10, 2019

Hi there,
is there a way to only save the settings / adjustments you made to a report without the data attached?
We have a pretty big report with lots of information, thats loaded (data form product sales).
Different people that use the report are using different filters or field settings.
We would like to save these different configurations so we coudl re-apply them e.g. a few days later after loading “fresh data”.
Can you help us with that? 
Thanks in advance!

2 answers

Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 13, 2019

Hello, Christian,
Thank you for reaching out to us.
The desired functionality can be achieved through the getReport and save API calls. Both methods return the report object without the embedded data in it by default. The difference is that the getReport only returns the current report without saving it when save API download the report to the local machine as a JSON file or upload it on the specified server.
More information about methods described above can be found by following links:

Kind Regards,

Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 13, 2019

We would like to provide additional information that could be useful for your case.
If your requirement is to get configuration without the dataset defined inline, or through the URL to the file, our team would like to kindly suggest the following approach: the dataSource object presented as a property of the report object can be deleted. Such an approach allows getting the report object describing only the configuration without the specific dataset in it.
However, we would like to draw your attention to the fact that such a report has to be preprocessed before loading back in Flexmonster so its dataSource property is present. Otherwise, it will be treated as an invalid report.
More information about dataSource object can be found by the link: Data Source Object.

Please login or Register to Submit Answer