Dashboards Filter API Behavior Discrepancy with App Studio (Removing filters)

I'm encountering an issue with the domo.filterContainer()
API in Domo App Studio. When I apply filters (Custom filter brick) using this API within my app, they work as expected. However, when I clear the filters using the UI (e.g., by clicking a "Clear All" button or removing individual filter selections), the filters are not actually cleared from the underlying data. Instead, it seems they are being set on the app's filters in App Studio, and I have to manually clear them using the page filtering options.
This behavior is different from what I observe in Domo dashboards, where clearing filters in the UI properly removes them completely without any manual update in the page filters.
Here's the relevant code snippet:
JavaScript:
function clearFilter() {
enableLogging && console.log('Clearing all filters');
selectedColumns =; // Add App Studio-specific double clear
domo.filterContainer(, "REPLACE");
setTimeout(() => domo.filterContainer(, "REPLACE"), 50);
renderSelectedFilter();
saveToLocalStorage(); } // Session cleanup for App Studio
window.addEventListener('beforeunload', () => {
domo.filterContainer(, "REPLACE");
// ...
}); // Filter sync handler
domo.onFiltersUpdate((filters) => {
if (filters.length === 0 && selectedColumns.length > 0) {
// ...
}
});
As you can see, I've already tried:
Calling domo.filterContainer(, "REPLACE")
to clear the filters.
Adding a setTimeout
to call domo.filterContainer
again, as a workaround for potential App Studio issues.
Implementing session cleanup and filter sync handlers (Gemini suggestion).
Despite these efforts, the problem persists.
Has anyone else experienced this discrepancy between App Studio and dashboards when using the domo.filterContainer()
API? Are there any known workarounds or best practices to ensure that clearing filters in the UI consistently clears the underlying data in App Studio apps?
Any insights or suggestions would be greatly appreciated!
Answers
-
Hi @Saaisathish ,
I believe in App Studio, filters applied through domo.filterContainer() or Custom Filter Bricks are stored in the App State, which isn't automatically cleared when a user interacts with the filter UI unless you explicitly handle that behavior.
This is unlike dashboards, where filter changes and clear actions are managed more tightly at the page level and propagate naturally.
So, when you “clear” filters in the UI, It visually clears the selection, but it does not always clear the underlying app state, especially if domo.filterContainer() was used earlier to apply them.Let me know if this makes sense.
Thanks!
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 657 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 815 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 775 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 81 Workflows
- 23 Code Engine
- 40 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 1 AI Projects and Models
- 18 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 144 Manage
- 140 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive