John V
02/14/2025, 5:58 AMIvana Gasparekova
02/14/2025, 9:43 AMdashboard
prop by reference.
May I know what version of SDK are you working with and what exactly do you mean by a dynamic filter, please? What behaviour would you like to achieve here?John V
02/14/2025, 1:57 PMJohn V
02/14/2025, 2:29 PMJohn V
02/14/2025, 2:33 PMJohn V
02/14/2025, 6:17 PMIvana Gasparekova
02/17/2025, 10:45 AMRadek Novacek
02/18/2025, 8:57 AMRadek Novacek
02/18/2025, 9:28 AMfilterContextRef
is that this needs a URI to a filter definition existing on the backend - as such, you would have to implement logic where the filters in your app are sent to our REST API to be created, and the resulting URI is then used as a reference to load the Dashboard.
The other option, dispatch commands, are much more streamlined, and also used in our own filter loading in the UI through events/actions. Essentially, we listen to dashboard init and dispatch action to set the filter state to the desired filter. This sounds a little complex in theory, but we have a code example right here for you to get inspired by 🙂John V
02/18/2025, 3:00 PMJohn V
02/18/2025, 7:36 PMuris: ["/gdc/md/xms7ga4tf3g3nzucd8380o2bev8oeknp/obj/2196/elements?id=1"],
). how do I find that uri for my filter?Ivana Gasparekova
02/20/2025, 12:28 PMJohn V
02/20/2025, 6:30 PMIvana Gasparekova
02/21/2025, 9:08 AM/<workspace_name>/dashboard/<dashboard_name>
It can be retrieved from your browser, under the URL pointing to the affected dashboard.John V
02/21/2025, 2:00 PMuris: ["/gdc/md/xms7ga4tf3g3nzucd8380o2bev8oeknp/obj/2196/elements?id=1"],
what xms7ga4tf3g3nzucd8380o2bev8oeknp & 2196 represents in URI? I believe that id is related to filter.
Please let me know how do I find that id for filter?Radek Novacek
02/21/2025, 4:54 PM