# Persisting Data

**URL:** <https://discourse.nodered.org/t/persisting-data/93950>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [17 December 2024 08:36 UTC](https://discourse.nodered.org/t/persisting-data/93950 "2024-12-17T08:36:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)\
**Post date:** [17 December 2024 08:36 UTC](https://discourse.nodered.org/t/persisting-data/93950/1 "2024-12-17T08:36:33Z")

</div>

I'm currently migrating a large project from Dashboard 1 to Dashboard 2. I've noticed when I navigate from a page and back again, dropdown control has lost it's selected value, and chart and gauge controls don't maintain their values. This is different behaviour to Dashboard 1. Is this the expected behaviour? If so how do I refresh the data without the user having to make a selection again?

regards Gerry

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [17 December 2024 09:14 UTC](https://discourse.nodered.org/t/persisting-data/93950/2 "2024-12-17T09:14:11Z")

</div>

Hi Gerry - that's not expected behaviour, and not something I can reproduce here.

The only thing I can think of is that you've setup authentication/client data with Dashboard? Do you have any of the following ticked for the respective chart types? If so, that will prevent persistence of the data in our central store.

 ![Screenshot 2024-12-17 at 09.13.36](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee2ad0bab5b19ace88d7bba04bb600483cf3508a.png)

---

<div class="post-metadata">

**Author:** ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)\
**Post date:** [17 December 2024 09:40 UTC](https://discourse.nodered.org/t/persisting-data/93950/3 "2024-12-17T09:40:21Z")

</div>

Ok. I understand now. I have **Include client Data ticked and also ui-dropdown, ui-chart and ui-gauge**. However, this was the main reason I wanted to migrate to the new dashboard, so that control selection wouldn't update for all users. So I guess I need to use ui-event or other means to set a default selection when the user migrates to the page to trigger my Database query.

Appreciate the quick response

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [17 December 2024 09:53 UTC](https://discourse.nodered.org/t/persisting-data/93950/4 "2024-12-17T09:53:42Z")

</div>

> [@gerrybartley](#):
>
> . So I guess I need to use ui-event or other means to set a default selection when the user migrates to the page to trigger my Database query.

Exactly that! Thee two core design patterns detailed [here](https://dashboard.flowfuse.com/getting-started.html#design-patterns) may help the understanding too.

We can't store data for every individual automatically server-side, it just can't scale to store it in memory and too many variations to consider for any unique identifiers for a given users, so we need to leave it to the NR users to cover it.

The database/ui-event combo is exactly what we'd recommend though

---

<div class="post-metadata">

**Author:** ![gerrybartley](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerrybartley/32/67495_2.png) [@gerrybartley](https://discourse.nodered.org/u/gerrybartley)\
**Post date:** [17 December 2024 10:17 UTC](https://discourse.nodered.org/t/persisting-data/93950/5 "2024-12-17T10:17:16Z")

</div>

Hi Joe  
That should work for my main use case which is non-interactive screens scrolling between different pages displaying current metrics for different areas of the factory. Keep up the good work

regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 December 2024 10:18 UTC](https://discourse.nodered.org/t/persisting-data/93950/6 "2024-12-31T10:18:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
