🎉 Flexmonster Pivot Table & Charts v2.8 has arrived!Read the blog post
Get Free Trial
Get Free Trial

Bug with setReport() and hierarchies with several levels

Answered
Javier González asked 7 days ago

Hi,
We just found an error when using the setReport() API function with hierarchical dimensions configured in some specific way. I have reproduced this error on one of your examples too.
In this example https://jsfiddle.net/flexmonster/7g82cnn3/:

  1. Configure a hierarchical dimension (with several drillable levels) after another non-hierarchical dimension, and then another non-hierarchical dimension after that second one (for example, Gender -> Employee Department -> Base Rate). (See STEP1.png).
  2. Expand/drill down all the dimensions to the last level. (See STEP2.png).
  3. Use the setReport() function with that same report. On your example I used flexmonster.setReport(flexmonster.getReport()), which should not change anything.
  4. You will notice that the last member is now collapsed instead of expanded (See WRONG.png: you can see that the “Amy E. Alberts” member is not expanded now).

This doesn’t happen if the hierarchical dimension is on the first position (Employee Department -> Base Rate). In this case, the report looks exactly the same (with dimensions drilled down to the last member) after using the setReport() function.
We found this because we saved some reports on our database with flexmonster.getReport() and we noticed that they didn’t look the same after loading them again with flexmonster.setReport(). 
Thanks for your help.

3 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster 3 days ago

Hello, Javier,
 
Thank you for reaching out to us.
 
We would like to confirm that we were able to reproduce the described problem.
 
Our development team will research possible solutions, and we will notify you about results with the ETA Mar 09.
 
Please contact us in case of additional questions.
 
Best regards,
Illia

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster 2 days ago

Hello, Javier,
 
Our team would like to kindly inform you that due to the holiday on Mar 9 the ETA is postponed to Mar 10.
 
Kind regards,
Illia

Public
Javier González 2 days ago

Thank you Illia.

Please login or Register to Submit Answer