Incubator-superset: Can we pass url parameters for dashboards

Created on 28 Aug 2018  路  12Comments  路  Source: apache/incubator-superset

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.

inactive

Most helpful comment

@graceguo-supercat Yes

All 12 comments

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?

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

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

@graceguo-supercat @williaster ^

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

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 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 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 I want to pass the parameters to the sql lab query from the ui

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

@graceguo-supercat Yes

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josephtyler picture josephtyler  路  3Comments

sashank picture sashank  路  3Comments

john-bodley picture john-bodley  路  3Comments

amien90 picture amien90  路  3Comments

fly-high-bj picture fly-high-bj  路  3Comments