grafana-flowcharting icon indicating copy to clipboard operation
grafana-flowcharting copied to clipboard

Programatically change grafana variable

Open CrashLaker opened this issue 4 years ago • 3 comments

Hi all,

Is it possible to change the variable programatically? I just want to change one variable in the same page. Then I wouldn't want to reload it or even open a new tab.

flowcharting-need-variable-change

CrashLaker avatar Feb 05 '21 19:02 CrashLaker

https://community.grafana.com/t/how-to-change-a-dashboard-variable-value-from-a-plugin/10107

one way would be to check if relative path is the current dashboard then swap only the variables

notes:

  • https://github.com/algenty/grafana-flowcharting/blob/276ca4aa109aa9896cc291b431de7b72b18f79f7/src/partials/mapping/link/index.html

CrashLaker avatar Feb 06 '21 11:02 CrashLaker

another use case to programatically refresh diagram without needing to refresh the whole page.

when using url mapping it opens on a new tab. even tried <buttononclick=""> but it looks like there's some sanitization

flowcharting-hierarchy-need-mapping-url

CrashLaker avatar Feb 07 '21 04:02 CrashLaker

I would love to see this feature as well

d02023287 avatar Oct 04 '21 18:10 d02023287