superset icon indicating copy to clipboard operation
superset copied to clipboard

Can we pass url parameters for dashboards

Open Geetha-LMI opened this issue 8 years ago • 14 comments

I want to pass the parameters from the user to dashboard. According to the user inputs i want to visualize dashboard. Can you suggest how to do that.

Geetha-LMI avatar Aug 28 '18 06:08 Geetha-LMI

I have the similar question, I could not find a clear and easy way to programmatically generate an iframe from the superset, or at least there is no such tutorials yet. We could either hack the iframe by passing parameters or hack the source code to provide our own api?

xiawang avatar Aug 28 '18 17:08 xiawang

+1.I have the same question to use superset to integrate in the web application.

Ruiya avatar Aug 29 '18 04:08 Ruiya

If my understanding is correct, you can do that via Flask RESTAPI https://flask-appbuilder.readthedocs.io/en/latest/quickhowto.html#rest-api

wangshihan513 avatar Aug 29 '18 12:08 wangshihan513

@graceguo-supercat @williaster ^

mistercrunch avatar Aug 29 '18 19:08 mistercrunch

@mistercrunch I want to trigger the query with the dashboard ui parameters. then want to visualize that query results.

Geetha-LMI avatar Aug 30 '18 11:08 Geetha-LMI

Hi @Geetha-LMI for url parameters for dashboard, can you elaborate a little bit, what's input and expected results? What kind of customization you are looking for dashboard?

graceguo-supercat avatar Sep 03 '18 23:09 graceguo-supercat

@graceguo-supercat I will give a example. when i pass parameters from the dashboard. Those parameters should pass to the sql lab query. it should execute with those parameters. and i want to visualize those query results in dashboard.

Geetha-LMI avatar Sep 04 '18 05:09 Geetha-LMI

@Geetha-LMI Superset dashboard holds a set of chart ids, in which each chart is a list of parameters for a sql lab query, as well as visualization type and some UI styling information. Dashboard can organize charts nicely (defined in position_json), add default filters, inline filters and immunes, add auto refresh functions (in dashboard metadata). Do you want to create related charts by API, then add them into dashboard?

graceguo-supercat avatar Sep 04 '18 06:09 graceguo-supercat

@graceguo-supercat I want to pass the parameters to the sql lab query from the ui

Geetha-LMI avatar Sep 04 '18 07:09 Geetha-LMI

Flow like: dashboard url parameters -> map to chart parameters -> generate sql lab query -> rendered by charts in dashboard?

graceguo-supercat avatar Sep 04 '18 07:09 graceguo-supercat

@graceguo-supercat Yes

Geetha-LMI avatar Sep 04 '18 07:09 Geetha-LMI

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 10 '19 15:04 stale[bot]

Hi..Was this functionality ever implemented in superset?

renjithpaul27 avatar Jun 08 '21 07:06 renjithpaul27

You might find the article Apache Superset — Use URL to filter dashboards useful.

ftwegner avatar May 31 '24 07:05 ftwegner