question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to share queries with a parameter

See original GitHub issue

I want to create a url so that I can access a Superset query from documentation.

For example, I’d like to share this query:

SELECT *
FROM {{ url_param('table_name') }}
LIMIT 100;

Assume the saved query has a savedQueryId=1234.

Is there any way to add parameters in the sharable link, as for example: https://localhost/superset/sqllab?savedQueryId=1234&table_name=sales so that when I open the link the parameter is kept?

Is there any other way to create link to superset queries programmatically?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Apr 29, 2019

Issue-Label Bot is automatically applying the label #question to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
marshell0commented, Mar 1, 2022

Same question on superset version 1.4.1 As we planned to embed some superset functionalities into our application

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing Files with Power Query Parameter Feature - YouTube
When you are sharing Power Query files, it's usually not an issue to update and refresh your data. However if your source file...
Read more >
Using Parameters to Enable Sharing - - PowerBI.Tips
Open PowerBI and click the top half of the Edit Queries button. The Query Editor will open. Click the Mange Parameters found on...
Read more >
Use parameters in queries, forms, and reports
Add a parameter to a query · Open the union query in SQL view. · Add a WHERE clause that contains each of...
Read more >
How to share queries with a parameter · Issue #7404 - GitHub
For example, I'd like to share this query: SELECT * FROM {{ url_param('table_name') }} LIMIT 100;. Assume the saved query has a savedQueryId= ......
Read more >
Queries Share Parameter Values - FIREHOUSE Software
Access the Report Designer form (reports) or Map Designer form, Queries share parameter values checkbox. Include all 'Ask' type parameters in the primary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found