Need a special offer?Find out if your project fits.
+

issue with rows captions after updating data

Answered
Ludovic Corbalan asked on April 3, 2020

Hi,
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 !!!

7 answers

Public
Vera Didenko Vera Didenko Flexmonster April 3, 2020

Hello, Ludovic,
 
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.
 
Kind regards,
Vera

Public
Ludovic Corbalan April 22, 2020

Hello,
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
 
Regards,
Ludovic

Public
Vera Didenko Vera Didenko Flexmonster April 23, 2020

Hello, Ludovic, 
 
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 slice
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.
 
Kind regards,
Vera

Public
Ludovic Corbalan April 24, 2020

Hi Vera,
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 :
"version": "2.7.23",
"creationDate": "2020-04-24T07:19:18.736Z"
 
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 !!
 
Regards
Ludovic

Public
Vera Didenko Vera Didenko Flexmonster April 24, 2020

Hello, Ludovic, 
 
Thank you for your response.
 
It seems that Flexmonster has not been updated completely or cache exists. 
Our team kindly recommends the following: 

  1. Please check the version of Flexmonster you are using. It can be checked by clicking on the grid/charts and pressing Ctrl+Alt+i. This will open a pop-up window with information about the version.
  2. In case the displayed version is not the latest, please try clearing the browser cache.
  3. In addition, we kindly recommend following our updating to the latest version guide: https://www.flexmonster.com/doc/updating-to-the-latest-version/
  4. Also, it may help to run the npm outdated command in your Angular project and checking Flexmonster's version there (ng-flexmonster).
    If ng-flexmonster is listed in the outdated list, please run the npm update ng-flexmonster command to update it and clear the browser cache.

 
Please let us know if this helps.
Looking forward to your reply.
 
Kind regards, 
Vera

Public
Ludovic Corbalan April 27, 2020

Hi Véra,
 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
 
Regards
Ludovic

Public
Vera Didenko Vera Didenko Flexmonster April 27, 2020

Hello, Ludovic,
 
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.
 
Kind regards,
Vera

Please login or Register to Submit Answer