Home / Companies / Preset / Blog / Post Details
Content Deep Dive

Retrieving the current filter state in Embedded Dashboards

Blog post from Preset

Post Details
Company
Date Published
Author
Vitor Avila
Word Count
682
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

The blog post delves into two methods for managing and retrieving filter states when embedding a Superset dashboard into applications, emphasizing the importance of knowing the current state of the dashboard for purposes like saving configurations or syncing with other app components. The first method involves auto-emitted dataMask changes, where events are triggered automatically whenever there is a change in filter state, providing real-time data that can be useful for live analytics but may result in excessive data if users frequently adjust filters. The second method, using the getDataMask function, allows on-demand retrieval of the current filter state, suitable for saving specific dashboard states, syncing across dashboards, or generating shareable links. While observeDataMask is beneficial for continuous tracking, getDataMask is ideal for capturing a snapshot at a particular moment. By combining these approaches with the ability to set filter states, users gain comprehensive control over dashboard interactions within their applications, enhancing functionality through seamless integration.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 2 4,881 1,155 268 -10%
Vector Search 1 1,772 362 150 +1%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.