
Hello All,
I am trying to save the filters a user is applying but when i try to access the filters by using getFiltersAsync(), I see that not all the filters are returned. Is there any specific configuration we need to make for the filters to be returned by the method getFiltersAsync(). For example, I see 10 filters on my filter sheet from which the user can choose but when i access the filters by using getFiltersAsync(), I get back only 6 of the filterts out of 10. I need to access all the filters present on my filters sheet.
Any help in this direction would be really great. Thanks.
Hi Askshar,
You might have measures and dimensions in your filters. Try to add:
var filterType = myData.getFilterType();
if(filterType === tableau.FilterType.CATEGORICAL) {
console.log(myData.getAppliedValues()); }
});
It is checking if a filter is categorical before getting the values.
Let me know if it is working,
Gigi