I’m having trouble with the datasource type. When reading a template flexmonster seems to look for the dataSource.dataSourceType field, for example:
But when saving a custom report template we use the flexmonster object and call the getReport() function, and then stringify and save to our database. However the response from calling getReport() looks like this:
If “dataSourceType” is missing, the report does not show properly next time it is read. This seems to be an issue after upgrading to v2.8.3, after running for a long time on v2.7.7. I’ve also tried upgrading to 2.8.6 but it still has the same problem.
The only current workaround is to manually add “dataSourceType” to the dataSource object before saving, copying the value from “type”, to make sure it is present next time to report template is read.
Thank you for reaching out to us.
Our team would like to inform that we did not manage to reproduce the described problem using mentioned versions of Flexmonster and the Data Compressor. Therefore, we want to ask you to provide us with a sample where the issue would be reproducible.
Also, our team would like to kindly explain that the Data Compressor is considered deprecated.
The currently recommended way of connection with databases, CSV, and JSON files is to use Flexmonster Data Server.
Flexmonster Data Server is a special server implementing the custom data source API. It is responsible for fetching data from a data source, processing, and aggregating it. Then the data is passed to Flexmonster Pivot in a ready-to-show format. The Data Server significantly reduces the time of data loading and enables analyzing large datasets.
You are welcome to learn more about the Data Server in our documentation.
Please let us know in case additional assistance is needed.
Our team is looking forward to hearing from you.