Field captions are cleared after updateData() method call

Alex asked 6 days ago

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 4 days ago

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 4 days ago

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 3 days ago

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