Dear visitor, despite the COVID-19 outbreak, our team continues operating at full speed.

Also, here is the form where you can apply for a special discount and we will contact you with possible options. Stay safe and continue achieving your business goals.

Fill the form
Get Free Trial
Get Free Trial

Bug with setReport() and hierarchies with several levels

Answered
Javier González asked on February 14, 2020

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.

4 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster February 18, 2020

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 February 19, 2020

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 February 19, 2020

Thank you Illia.

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster March 12, 2020

Hello, Javier,
 
We are pleased to inform you that the issue with the restoration of reports with multiple expanded and drilled down tuples was fixed.
 
This is available in the 2.8.2 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/
 
Please let us know if everything works.
 
Best Regards,
Illia

Please login or Register to Submit Answer