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.

Refresh query when parameters update

See original GitHub issue

Currently when you change parameter values the query doesn’t update until you execute it again. This can be somewhat confusing, specially with dropdown parameters, where nothing happens after you pick a value.

The main reason for this was to avoid running a query before the user updated all the parameter values (in case there is more than one).

Some ideas for solutions:

  • Execute the query when the parameter value is updated. Add some debounce (that resets when the user “touches” another parameter?) to let the user update other parameters before running the query.
  • Add some sort of “Apply” button next to the params, so it’s clear you need to click on it. Maybe even add some indication on it when the params are changed (like we do for the save button).
  • Add a “Pause execution” toggle, that allows you to pause query refresh in case you want to update multiple parameters.

Any other ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kocsmycommented, Jul 9, 2018

We had a discussion around this and we’ll modify it in the following way:

query parameter query parameter modified

We’ll add an “Apply” button to each modified input field that needs to be clicked in order to re-execute the query.

  • The button will only appear if you modified an input.
  • Shift Click will Apply all the modified parameters.
1reaction
arikfrcommented, Jan 31, 2019

@alisha17 usually we close issues that are already in master. If you’re asking if it will be addressed in the current version, then probably not. Current version is soon to be released. It will probably make the cut into the next one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto refresh Power Query on parameter change
Auto refresh power query with a macro​​ There are two ways for Excel to trigger events when cell values change: User Defined Function...
Read more >
Query Parameter Refresh Issue - Microsoft Power BI Community
The issue is that, we are passing query parameters to our data source to get the filtered data, and also showing the parameter...
Read more >
Update parameter in query and refresh report without doing it ...
I have a report with a parameter in the power query, and I need to change that parameter each time I update the...
Read more >
Customize a parameter query - Microsoft Support
Click OK. To refresh the data, click the arrow next to Refresh All on the Data tab, in the Queries & Connections group,...
Read more >
Database Does Not Update Query when Parameter Changes
In desktop you have to refresh the extract manually after changing the parameter, that is not happening automatically unless you use a live ......
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