I have two dashboards in my Grafana setup: a “Plant Overview” dashboard and an “HVAC Overview” dashboard.
In the “Plant Overview” dashboard, I have a dropdown variable Plant
with the following data:
[
{
“id”: 1,
“latitude”: 17.09677,
“longitude”: 78.31115,
“name”: “HYDERABAD”
},
{
“id”: 2,
“latitude”: 12.971599,
“longitude”: 77.594566,
“name”: “BANGALORE”
}
]
Based on the selected plant, various visualizations are updated. Additionally, there’s another variable, hvacId
, which is fetched dynamically via an API based on the selected plant ID.
variables in Plant Overview dashboard:
In one of the panels in the “Plant Overview” dashboard, I have a panel link to redirect to the “HVAC Overview” dashboard:
“/d/edy8rzwypr18gb/hvac-overview?orgId=1&var-hvacId=${hvacId}”
Problem: When I first navigate from the “Plant Overview” dashboard to the “HVAC Overview” dashboard, the correct hvacId
is shown. However, if I go back to the “Plant Overview” dashboard, change the selected plant without refreshing the page, and redirect to “HVAC Overview” again, the dashboard shows the previous hvacId
instead of the one for the newly selected plant.
If I refresh the “Plant Overview” dashboard before selecting a new plant and redirecting, the correct hvacId
is passed to “HVAC Overview.” But without refreshing, the hvacId
seems to remain stuck on the previous plant’s value.
Question: What could be causing this hvacId
mismatch when navigating between dashboards without refreshing? Is there a way to ensure the correct hvacId
is passed each time a new plant is selected, even without a page refresh? Any help to resolve this would be greatly appreciated!
variables of HVAC overview dashboard :
is this issue related to Plant variable value , that is also not getting updated properly.