-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populating and setting a variable's current value #165
Comments
Here is the output I see when executing that, can you say what you are referring to specifically? {
"abc": {
"current": {
"selected": false,
"text": [
"false"
],
"value": [
"false"
]
},
"includeAll": true,
"label": "Abc?",
"multi": false,
"name": "abc",
"options": [
{
"selected": true,
"text": "true",
"value": "true"
},
{
"selected": false,
"text": "false",
"value": "false"
},
{
"selected": false,
"text": "limited",
"value": "limited"
}
],
"query": "true : true,false : false,limited : limited",
"type": "custom"
}
} Have you run this in Grafana and was that not working as expected, how did it behave? |
It looks like that has changed since the inception of the code that supports this. I've made an issue for this: #166 |
Can you create a separate issue with examples? We've tried to cover for this in the past so examples might help identify what's causing this. |
Hi and thanks for the work on making grafonnet better aligned with the development of Grafana!
I have been playing around with the 10.2.0 API and Grafana 10.2.3 and now have the following variable definition:
However, the variable's current value remains
"true"
despite thewithCurrent('false')
. How do I influence the variable's current (default) value?Also, how do I make the default value "All"?
And finally,
query
type variables do not seem to populate as expected. After uploading a dashboard definition including the use ofquery
variables, I need to manually go and clickRun query
in the Grafana variable editor UI to populate values.The text was updated successfully, but these errors were encountered: