IM not showing filters on load


I have an app with the interaction manager and a couple of visuals. The app loads with some filters applied (by specifying the filters with filters(f1, f2) for each visualization in the aql).

I’ve been trying the filters to be shown on the interaction manager but it does not seem to be aware of them. It only catches up when I start adding and then removing filters by clicking other visuals.


Hi @patrick. You need to use the IM API method .setFilters() so you can set those initial filters to the interaction manager, and after that use .updateContent() so they can be displayed.


I had the same problem and this definitely works. It shows the filters in the Interaction Manager. However if you don’t set the filters to each visualization beforehand as @patrick mentioned, then the interaction manager is out of sync. Is this an intented behaviour?


@diego Yes, and it is the recommended strategy to use when loading an applications with filters already applied. This way the interaction manager is not forced to apply the filters to each visualization on page load, but instead you just notify it about the filters that the visualizations will be using.


This is interesting. In several of our apps we use static filters, not many, but we use them. Our users are so used to to look at the IM to know the state of the dashboard. But some of them have complained about that they get confused when filters are applied and they are not listed in the IM and I was wondering if these filters aren’t supposed to be shown there?

I saw this entry and I though, maybe the use of the IM api is what we are missing.


Hi @william. Static filters are not meant to be shown in the IM and definitely they are not related at all with it, so you can’t set them or remove them with the IM api. These type of filters are use to permanently apply a filter to a visual, that’s why they are only set in the aql of the visualization. You may have some sort of a list where you display what static filters are being used and what visualization has them in order to be informative.