GitHub user mikysetiawan edited a comment on the discussion: Apply multiple
filters in embedded dashboard
hi I already follow your instruction to apply urlParams but it's still not
working @dosu
```supersetEmbeddedSdk.embedDashboard({
id: DASHBOARD_ID, // given by the Superset embedding UI
supersetDomain: SUPERSET_HOST,
mountPoint: document.getElementById("superset-container"),
fetchGuestToken: () => GUEST_TOKEN,
dashboardUiConfig: {
hideTitle: true,
hideTab: true,
hideChartControls: true,
filters: {
visible: true,
expanded: true,
},
urlParams: {
preselect_filters: JSON.stringify({
// Replace with your actual chart IDs and column names
"NATIVE_FILTER-a2-Jc9RxO": ["ACEH"], // For a
multi-select filter
"NATIVE_FILTER-b6BM3PULf": [11]
// "456": { price: [/* values here, but only
equality/IN supported */] }
})
}
},
iframeSandboxExtras: ['allow-top-navigation',
'allow-popups-to-escape-sandbox'],
referrerPolicy: "same-origin"
});```
GitHub link:
https://github.com/apache/superset/discussions/34020#discussioncomment-14810359
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]