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

Field captions are cleared after updateData() method call

Alex asked on June 10, 2019

I’m using Flexmonster Version 2.7.7 in angular application with oscv data source.
I have an issue with field captions.
Field captions are configured in slice object using ‘caption’ property. After the report is loaded all captions is OK. But after reloading data through updateData() method captions for invisible columns are missed and uniqueName values displayed instead.
What do I need to ensure that the captions are not cleared?

3 answers

Vera Didenko Flexmonster June 12, 2019

Hello, Alex,
Thank you for writing to us.
We would like to point out that currently only the captions for the visible columns are saved in the report.
That is the reason why captions for invisible columns are missed after the updateData() method.
If possible, we suggest defining the necessary field names directly in the data source.
Please let us know if such an approach works for your case.
We are looking forward to hearing from you.
Best Regards,

Alex June 13, 2019

Hello, Vera,
Thank you for your response.
Unfortunately defining the necessary field names directly in the data source is not suitable in my case.
I need to implement functionality of storing user defined report configurations with possibility of loading them in future.
I have done that through saving the result of getReport() without “dataSource” and “localization” properties to database.
Saved configurations should work with any locale, that is why it is not possible to put field names directly to data source.
Could you suggest me how to implement localization of field names ?
Best Regards,

Vera Didenko Flexmonster June 13, 2019

Hello, Alex,
Thank you for your reply.
We kindly suggest defining Field captions for the OCSV data source with SQL alias, for example:

SELECT category_name AS Category, color_name AS Color FROM Categories;

More information regarding this approach is available in this thread:
Please let us know in case of any other questions.
Best Regards,

Please login or Register to Submit Answer