# Canvas: Filters not applied after switching page

**URL:** <https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829>\
**Category:** Kibana\
**Created:** [October 17, 2018, 12:24pm UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829 "2018-10-17T12:24:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarkin67](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tarkin67](https://discuss.elastic.co/u/tarkin67)\
**Post date:** [October 17, 2018, 12:24pm UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/1 "2018-10-17T12:24:29Z")

</div>

Dear Canvas Team,

I noticed an issue with canvas workpads that have multiple pages. Say the workpad has two pages, and either page contains a `dropdownControl` element (or any other element that applies a filter on the workpad), the filters are only applied for the dropdownControl that is located on the page that the workpad was initially loaded with.

So to show the issue I created a simple workpad with two pages. The first page contains a table that shows the demodata:

```
filters
| demodata
| table
| render

```

and a `dropdownControl` that allows to filter on the _project_ column:

```
demodata
| dropdownControl valueColumn=project filterColumn=project | render

```

This looks as follows:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b093b896d615ab21e0db5c9702ff9da3b0db72c5.png)

The second page is exactly the same, a table displaying the demo dataset and a dropdownControl to allow filtering on the _project_ column.

The problem I encountered is the following. Say I close the browser and reopen the workpad (or simply refresh the browser), I land on page 1 and select the project elasticsearch in the dropdown on page 1, the table shows only the _elasticsearch_ entries:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5bca843abe9ea68ae32689efbae8e72ca4044fad.png)

Select _any_ in the dropdown and all entries are shown again:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/8/3/83f4f548e127557aa0784908f5f3dfd737de9a65.png)

This is the expected behavior and everything is fine until here. However, when I now switch to the second page and select anything in the dropdown on the second page, the filter does not seem to be applied to the workpad:

 ![grafik](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cc782d8cd80727d6184c29f90e646a303bd1c8b6.png)

Both of the tables, that on page 1 and that on page 2 still display all records. When I switch back to page 1, the dropdown on page 1 still works fine.

The funny thing is that when I am on page 2 and refresh my browser, the dropdown on page 2 works but the one on page 1 does not. So it seems like somehow only the filter of elements that are on the initially loaded page get applied to the workpad.

This is quite the issue since I have workpads where the user will get taken back and forth between different pages, and having to refresh the browser after every change of page is cumbersome.

Do you have any idea what the issue here might be?

Thanks in advance and best regards,  
Kasimir

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 19, 2018, 3:22am UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/2 "2018-10-19T03:22:09Z")

</div>

Thanks @tarkin67,

I was able to verify this, but it appears that only the last dropdown filter applies the filter for the data tables. Will bring this up with the Canvas team.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 19, 2018, 3:35pm UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/3 "2018-10-19T15:35:27Z")

</div>

As a follow-up from the Canvas team. This is actually an intended behavior at the moment. Filters apply to the entire workpad.

---

<div class="post-metadata">

**Author:** ![tarkin67](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tarkin67](https://discuss.elastic.co/u/tarkin67)\
**Post date:** [October 19, 2018, 4:59pm UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/4 "2018-10-19T16:59:52Z")

</div>

Thank you for the reply @tylersmalley.

I am aware that filters will be applied to the entire workpad and this is totally fine. The problem is that once I switch the page, the dropdown filter does not have any effect! Is this intended as well?

Kind regards,  
Kasimir

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [October 19, 2018, 5:42pm UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/5 "2018-10-19T17:42:34Z")

</div>

Is this still the case if you only have a single dropdown filter?

---

<div class="post-metadata">

**Author:** ![tarkin67](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@tarkin67](https://discuss.elastic.co/u/tarkin67)\
**Post date:** [October 22, 2018, 6:31am UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/6 "2018-10-22T06:31:22Z")

</div>

Yes, this also happens when there is only one dropdown filter.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 19, 2018, 6:31am UTC](https://discuss.elastic.co/t/canvas-filters-not-applied-after-switching-page/152829/7 "2018-11-19T06:31:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
