Hello,
I'm using a Geography hierarchy with State > City.
When a record has State filled but City is an empty string (""), it doesn’t behave correctly when using expandAllData()
.
Minimal example on JSFiddle:
https://jsfiddle.net/amjkncte/1/
Expected behavior: records with missing intermediate levels should still be handled gracefully when expanding all data.
Hello,
Thank you for reaching out to us.
We will examine the described behavior and provide a fix with our minor release, ETA July 21st. Our team will notify you about the release.
Please let us know if further questions arise.
Kind regards,
Nadia
Hello,
We are happy to inform you that the issue when expandAllData()
did not expand a multilevel hierarchy with an empty value in the last level was fixed.
This fix is included in the 2.9.108 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-108/
You are welcome to update the component. Check out our updating tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/
Please let us know if the fix works for you. Looking forward to hearing from you.
Best regards,
Nadia
Hello, thanks for the fix.
I tested it and the rows are expanding correctly, but now when a record doesn't have a "city" in it, a (blank)
row is displayed that wasn't displayed before. (can be viewed in the same fiddle)
Is there an option to maintain the previous behavior?
Hello,
Thank you for your reply.
The original issue with the expandAllData
occurred due to the absence of the (blank) member within the hierarchy. By default, Flexmonster displays empty members as the (blank) member, which carries a semantic value by explicitly representing unspecified members and corresponding numeric values. Thus, adding the (blank) member for this case was necessary to ensure consistent behavior across the component. The previous behavior, which omitted the (blank) member, cannot be reverted.
Please let us know if our answer helped you.
Best regards,
Maksym
Hi Maksym, thanks for the reply.
I understand your point, but we developed our report considering that a non-existent hierarchical level wasn't being displayed, and now the cell with the value (blank) is causing confusion for our customers, and we've had to revert Flexmonster to the previous version (2.9.107). Would it be possible to add a feature (option) to omit this value (blank)?
Hello,
Thank you for the reply.
Since your logic relies on not showing blank members within the hierarchy, we understand that changing it can cause confusion among users, and we see why reverting to version 2.9.107 was necessary in your case. Our developers will conduct further research on what can be done to resolve this issue. We will notify you regarding the results, ETA Aug 5th.
Please let us know if any other questions arise.
Best Regards,
Maksym
Hello,
We are pleased to inform you that expandAllData
method now does not show a "(blank)" member when it is in the last level of a multilevel hierarchy.
This is provided in the 2.9.109 version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-9-109/
You are welcome to update the component. Here is our guide on upgrading to the latest version: https://www.flexmonster.com/doc/updating-to-the-latest-version/
Please let us know if the fix works fine for you.
Best regards,
Maksym