Reset to Default Filters Button using BloX
Summary: A participant discusses challenges with using a "Reset Filters" button in the BloX JTD script, sharing a solution they attempted without success. Rafael Ferreira explains their experience, noting the button did not reset the filters as intended across dashboards, despite trying various methods. HQ_Dev_Prod identifies the need to define default filters first, raising a question about the impact of default settings on shared dashboards. The discussion centers on troubleshooting and optimizing dashboard filter settings for a team environment.
22 comments
DRay
·1 year agoHi HQ_Dev_Prod,
Great question.
When you set default filters on a dashboard, it impacts only that specific dashboard and not others. The default filters you set will be the initial filters seen by users when they first open the dashboard or when they click "Reset Filters". However, once a user has opened the dashboard, their view becomes personalized, meaning they will see their own filter settings upon subsequent visits unless they reset the filters .
If you are sharing a dashboard with your team, the default filters you set will be the default for all users initially, but each user can modify their view. To ensure everyone sees the default filters, users can click "Reset Filters" to revert to the default settings .
Therefore, the filters you set as default will be the default for all users you share the dashboard with initially, but each user can have their own view after interacting with the dashboard.
I hope that helps. Please let me know if you have any more questions.
HQ_Dev_Prod
·1 year ago · EditedAm I doing something incorrectly by chance? I went through the process as described to setup the action.
But the button doesn't seem to reset all filters in the dashboard.
Solved: I need to first define my default filters in the dashboard.
Question: Will that only impact my dashboard? What if I am making a dashboard my team can use. Will the filters I setup as default be the default for all users I share the dashboard with?
Liliia Kislitsyna
Admin1 year agoAstrorafunderstood. I'm not aware of such a solution, I'm afraid. If you find one, please feel free to share it. 🙏
Best Regards, Lily
Rafael Ferreira
·1 year agoHi Liliia_DevX,
The only thing with this is I don't want to the filters to reset every time I JTD. I want them to stay in place, and then when I choose to reset the filters, I have a button for that. I will look into other solutions and see what I can do. Thanks again.
Liliia Kislitsyna
Admin1 year agoAstrorafthanks for additional details. Regarding the reset button, since it only affects the current dashboard and not the drill dashboards, you might want to experiment with JTD filter configurations to manage filter behavior across dashboards.
In the Blox widget you should the JTD config. Have you tried adding "resetDashFilterAfterJTD: true"? This setting might help reset filters after jumping to the dashboard.
You can explore different JTD filter configurations to fine-tune filter behavior in drill dashboards. Check out this resource for more details: https://community.sisense.com/t5/knowledge-base/exploring-the-potential-of-sisense-jump-to-dashboard-filter/ta-p/21389
Best Regards, Lily
Rafael Ferreira
·1 year ago · EditedSo I am using the BloX JTD script that I shared, and I tried this solution https://community.sisense.com/forum/product-feedback-forum-4/topic/button-to-reset-all-widget-level-filters-1034 and I also have this solution, in which I added the Click action button.
When I tried both these methods, the button did not reset the filters. The JTD is at the top, the reset filter is below, all my filters are the exact same across the dashboards, so that the filters pass to each dashboard.
Liliia Kislitsyna
Admin1 year agoAstrorafplease describe the solutions you've tried and how you configured them. We'll check if everything is set up correctly or if we have any other suggestions.
Regards, Lily
Rafael Ferreira
·1 year agoHi Liliia_DevX,
I tried to implement this solution, but it did not work. 😞
Liliia Kislitsyna
Admin1 year agobminehart hi! Please review the solution provided by rapidbisupport in this thread: https://community.sisense.com/t5/product-feedback-forum/button-to-reset-all-widget-level-filters/idi-p/20649.
It looks like what you're looking for 😊
Best Regards, Lily
bminehart
·1 year agoThere has been a bunch of chatter under my old 2024 question in this thread. Any chance someone knows now if what I'm asking is possible?
Our users often get into a situation where they've accidentally created disparate sets of widget-level filters and I'd like a button that will reset all of the widget-level filters back to the default (i.e., inherit all fo the filters from the dashboard and remove all widget-level filters).
Any bright ideas?
Liliia Kislitsyna
Admin1 year agoAstroraf Please check if Sticky Filters could help to synchronize the filters across all JTD dashboards. Alternatively, using "resetDashFilterAfterJTD: true" in JTD should reset all filters to their default state each time. Additionally, you could have a button on the parent dashboard to reset only the filters of this specific dashboard.
Best Regards, Lily
Rafael Ferreira
·1 year agoLiliia_DevX is there any solution to make this work with JTD?
Liliia Kislitsyna
Admin1 year agoAstroraf If I understand you correctly, you should be able to use "resetDashFilterAfterJTD: true" to reset filters on your JTD dashboards after jumping to them. Please refer to this guide for more details: Exploring the Potential of Sisense Jump to Dashboard Filter.
However, the solution described in this guide is designed to work within a single dashboard and does not impact the filters of other dashboards, I'm afraid.
Best Regards, Lily
Rafael Ferreira
·1 year agoHi Liliia_DevX,
So the filters that I select on the filter dashboard from dashboard to dashboard using the JTD BloX, then, if I decide to reset the filters on one of the dashboards, it affects the other dashboards in the JTD BloX widget. So Say I filter on Years, Income, and Profit in Audience Dash, then the filters transfer to Comp, Custom, and Service. Which they already do, so then say I am on Comp and Custom Dash, and I click reset filters, then all the filters are reset.
Liliia Kislitsyna
Admin1 year agoAstroraf hi! Thanks for sharing your example code. As I checked it from my side, these are Blox buttons to open JTD, right? How do you expect the :Reset Filters" button to affect this widget? Please provide more details on your use-case to provide you with correct suggestions.
Thanks!
Rafael Ferreira
·1 year agoHi Liliia_DevX ,
I am using the JTD BloX widget:
Then I have a reset filter as:
But for some reason the reset button does not like my code I guess.
Liliia Kislitsyna
Admin1 year agoAstroraf Thanks. Just tested the template Backtodefaultfilters.dash from guide above on L2025.1.0.280 and it worked. Could you please provide your template based on any sample ElastiCube to review it?
Thanks!
Rafael Ferreira
·1 year agoHi Liliia_DevX, I am using Version: L2025.1.0.123
Liliia Kislitsyna
Admin1 year agoAstroraf what Sisense version are you running?
Best Regards, Lily
DRay
·1 year agoHi Astroraf,
We have a filter reset button coming in a future release, but in the meantime, maybe the solution offered by rapidbisupport in this post will help. https://community.sisense.com/t5/product-feedback-forum/button-to-reset-all-widget-level-filters/idi-p/20649
Can you keep me posted?
Thank you.
Rafael Ferreira
·1 year agoHi DRay Liliia_DevX,
I am using the implementation to reset my dashboard filters while also using a BloX Jump To Dashboard button to switch between multiple dashboards. My reset button is not working. has there been a change due to a version update?
bminehart
·2 years agoHi DRay -- checking this out at your suggestion. It might work, but I'm wondering whether this can be targeted at widgets (or, really, ALL widgets) with a script? I think your snippet above is targeting the Dashboard only?