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
cleardomo.filterContainer(, "REPLACE");
setTimeout(() => domo.filterContainer(, "REPLACE"), 50);
renderSelectedFilter();saveToLocalStorage();}
// Session cleanup for App Studio
window.addEventListener('beforeunload', () => {
domo.filterContainer(, "REPLACE");// ...});
// Filter sync
handlerdomo.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!