# Dashboard with experience context variables

**URL:** <https://forums.losant.com/t/dashboard-with-experience-context-variables/2217>\
**Category:** Help\
**Tags:** dashboard\
**Created:** [September 25, 2019, 7:21pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217 "2019-09-25T19:21:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [September 25, 2019, 7:21pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/1 "2019-09-25T19:21:50Z")

</div>

I’m testing out the test tool within a dasboard to switch between different experience users, but I do not see anything change. I’m testing with dashboard 5d8bac366cdb3e0006f14ed3

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [September 25, 2019, 7:44pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/2 "2019-09-25T19:44:07Z")

</div>

ok, so I think I figured out why it didn’t change.  
The dashboard block was using context variable ctx.deviceid-0 instead of ctx.experienceUser-0.  
When I changed that I can see data changing. Both users I tested with was only assigned to a group that would show one device.  
But for some reason the header of blocks having variable ctx.deviceId-0.name as part of the name, would not change.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [September 25, 2019, 9:05pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/4 "2019-09-25T21:05:53Z")

</div>

@Lars_Andersson,

Are you still having issues?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [September 25, 2019, 9:07pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/6 "2019-09-25T21:07:25Z")

</div>

with the ctx.deviceId-0.name variable in the block header, Yes, but that’s maybe because I’m using it incorrectly?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [September 26, 2019, 2:17pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/8 "2019-09-26T14:17:39Z")

</div>

Hi Lars,

Is the ctx.deviceId-0.name variable not resolving to a device name, or is it not updating when you change to a new device (in the context menu)?

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [September 26, 2019, 2:39pm UTC](https://forums.losant.com/t/dashboard-with-experience-context-variables/2217/9 "2019-09-26T14:39:54Z")

</div>

It was not updating when I switched user.  
But the data in the graph changed.  
I ended up removing it from the headers.
