Hi,
I am able to disable all filters with the showFilters
option set to false
but I want to disable/enable them for individual fields. I tried supplying filters.members = false
for individual measures
but it is not working. What else could I try?
I have also tried this and its not working, but in the mapping I don't include all of the columns on which we need to disable filters: https://www.flexmonster.com/question/how-to-disable-the-filter-option-for-particular-column-in-flat-table/?hilite=%22disable%22%2C%22filters%22
Hello,
Thank you for reaching out to us.
If you want to disable filters for specific fields, you need to explicitly define filters: false
for each of those fields in the mapping
. Since filters won’t be disabled by default, you have to specify this property for every column where the filter should be hidden. You are welcome to refer to the following example: https://jsfiddle.net/flexmonster/1bmr5ft6/.
Please let us know if other questions arise.
Best regards,
Nadia
I did that but its still not working. Here is what mapping has:
...
And I still see filters there:
Hello,
Thank you for the details.
We recommend checking if the mapping is set correctly. For example, you can use the getReport
API call after Flexmonster is initialized and check if the report.dataSource
object contains the mapping
with the necessary properties. Also, please modify the following JSFiddle to show us the described issue: https://jsfiddle.net/flexmonster/1bmr5ft6/. It would greatly help us.
Looking forward to hearing from you.
Kind regards,
Nadia
I found a place where I am overriding the mapping accidentally. So, its fixed now.
Thank you!
Hello,
Thank you for the feedback!
You are welcome to contact us if other questions arise.
Kind regards,
Nadia