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?
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
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.
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 ?
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: https://www.flexmonster.com/question/is-it-possible-to-translate-ocsv-fieldnames-without-altering-the-datasource/
Please let us know in case of any other questions.