Select to view content in your preferred language

Filters in a Window

3976
12
07-13-2021 12:54 PM
JonathanMcDougall
Frequent Contributor

So, I thought I was being smart, clearly failed again. 🙂

To save screen "real-estate" I thought it would be good to have a number of filters brought forward through a window. The screengrab below shows the result is correct as I apply a filter from the window, I've included the count which I used to verify it was working, however, as soon the window is deactivated (clicked off) it clears the filter.

Is there a setting, or something I'm missing to keep the filter(s) active after closing the window?

 

JonathanMcDougall_0-1626206077819.png

 

12 Replies
ColinBergmann_ct
Occasional Contributor

@ShengdiZhang This bug is not fixed for me in July 2026. Perhaps the June 2026 updated reverted it? Update: It seems like it only resets the filter when the window is set as a splash screen.

0 Kudos
ShengdiZhang
Esri Regular Contributor

Currently, this is expected behavior for a splash window. Splash windows are a special case, and we're still working on it.

0 Kudos
AndresMorenoVasquez
New Contributor
@ShengdiZhang, understood! Thanks for confirming that splash windows act as a special case here. If there is an enhancement bug logged for the splash window filter persistence, please let us know so we can vote on it!

As a side note on the "React" side of things in Exp B— I imagine this stems from how the splash window's lifecycle is handled compared to standard windows. It seems like closing the splash screen causes it to fully unmount from the DOM, which triggers a cleanup function in the Filter widget's useEffect hook. That unmount cleanup likely clears the applied SqlExpression from the jimu-core DataSourceManager. If so, a potential fix might be to just toggle the splash window's CSS visibility (display: none) instead of destroying the React node entirely

Our use case: Example 
Thanks!
0 Kudos