Hope you’re going well!!
Issue description :
context : the pivot table displays data on compact form and I remove a field (using right click on the item and actionning “Remove field”) .
After, I use the API function updateData() to refresh all the data values.
Then, When I want to re-selected the removed field, it has lost its”caption”.
Please, let me know if I’m not clear enought.
Thank you for your help !!!
Thank you for reaching out to us and for providing details.
We have managed to reproduce the problem on our end: https://jsfiddle.net/flexmonster/6yh0542b/
Our team will provide the fix to this issue in the minor release version with the ETA April 20th.
Please let us know if you have any questions.
I upgraded the flexmonster version this morning (2.8.5) and I still have the issue “The issue with resetting captions after the
updateData() API call was fixed.”.
I noted that in the jsFiddled you provided, you use an object “report.dataSource.mapping” to configure the captions.
In my case I use “report.slice.rows.caption”, is it deprecated to use captions this way ?
Thans a lot for your answer
Thank you for your feedback.
We would like to explain that using
report.slice.rows.caption is not deprecated, however, with such an approach only captions for the active fields can be specified. In this case, if the field is removed from the
slice, it can’t be ensured that its caption will remain when the data is updated.
For such cases, our team kindly recommends using the
mapping property instead. Please consider that through the
mapping property captions can be defined for all your fields even if they are not specified in the
For more information about the
mapping property and its usage, please see the following guide.
Please let us know if this works for you.
Looking forward to your response.
thanks for your answer.
I tried to use “mapping” object and still have my issue….
But I found something that may explain :
I use the angular component and I have this entry on my package.json : “ng-flexmonster”: “2.8.5”,
However, when I save a report from a pivot table generated with this version,
I can find this at the end of the saved report :
The version indicated isn’t “2.8.5”.
Does this may be an issue with the angular component upgrade on NPM that could explain my problem ?
Thanks for your answer !!
Thank you for your response.
It seems that Flexmonster has not been updated completely or cache exists.
Our team kindly recommends the following:
Ctrl+Alt+i. This will open a pop-up window with information about the version.
npm outdatedcommand in your Angular project and checking Flexmonster’s version there (
ng-flexmonsteris listed in the outdated list, please run the
npm update ng-flexmonstercommand to update it and clear the browser cache.
Please let us know if this helps.
Looking forward to your reply.
I’m now sure that i use the good version and it seems to work fine with captions using mapping object.
Thanks a lot for your help
Thank you for your feedback.
We are glad to hear that everything works.
As always, feel free to reach out to us if questions arise.