I am using custom api source and when using a hierarchy filter I have issues as I return in the members call both id and value but in the select response I need to send the value instead of id because otherwise the cells will display just the number for the nested fields (as flex only does the member call on the first level). However this creates an issue where when opening the filter popup, flex seems to append the grid results to the filter instead of solely relying on the members response and this creates duplicate entries.
You can observe the issue when opening the category filter here: https://jsfiddle.net/juvian/ezpw0rvx/7/
And if I return the ids instead of values for the first level, that gets fixed but now second level would be broken (open category filter, expand first level and you see second level duplicated): https://jsfiddle.net/juvian/ezpw0rvx/14/
How can I make flex not include these entries from the results and rely only on the members call?
Hello Marcelo,
Thank you for reaching out to us.
Currently, the id
property works correctly only for the first level of the hierarchy. Could you please tell us if using the id
property is critical for your use case?
Looking forward to hearing from you.
Kind regards,
Nadia
Hello Nadia, thanks for replying. It is important for us as there can be multiple categories with the same name (value) but different ids, so for the filtering server side we do need to know the ids. Plus this is the main filter in our application so it will be the most commonly used. I don't really need it to support mapping the ids to value in the grid according to the /select response as I am already doing the mapping myself but I do need a way to prevent the filter entries from being poluted with the response values
Hello Marcelo,
Thank you for providing us with the details.
Our team will research possible solutions and provide you with results with our minor release with the ETA September 30th. We will notify you about the release.
You are welcome to contact us if other questions arise.
Kind regards,
Nadia
Looking forward to it, thanks
Hello Marcelo,
Hope you are doing well.
Our team has provided the answer via email. Please check your inbox.
Kind regards,
Nadia