# Enabling / disabling writing data to a file using a dashboard switch node

**URL:** https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438
**Category:** General
**Tags:** node-red-dashboard, function-node
**Created:** [19 December 2021 15:41 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438 "2021-12-19T15:41:52Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)
#### Post date: [19 December 2021 21:43 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/21 "2021-12-19T21:43:27Z")

</div>

I think I have the same settings. But flow.logging does not change it's value (i did refresh always). On flow "Spielwiese" it works perfectly. May be I have to delete "Spielwiese" because it uses the same variable somehow?

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/0/b09923941dd571b1e7206ae74ac131957bcb6b50.png)

 ![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/9/59a83c0ab941184f95f31ce982709c6f47578a2c.png)

---

<div class="post-metadata">

### Author: ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)
#### Post date: [19 December 2021 21:51 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/22 "2021-12-19T21:51:11Z")

</div>

I think I found it... don't waste your time with my comments.

---

<div class="post-metadata">

### Author: ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)
#### Post date: [19 December 2021 21:53 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/23 "2021-12-19T21:53:25Z")

</div>

Ok - because if exactly everything is exactly what I have posted - it must work!!! - Otherwise I would doubt on my understanding of NodeRed.

---

<div class="post-metadata">

### Author: ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)
#### Post date: [19 December 2021 21:57 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/24 "2021-12-19T21:57:03Z")

</div>

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/351676883af1bcdfe0d421be38746da379ef2189.png)  
That was the reason.  
Pretty stupid, isn't it.

Sorry for wasting your time and thank you!

Have a nice night @Steve-Mcl and @mickym2 , I will go ahead tomorrow and come back with new stupid questions!  
😜

---

<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: [17 February 2022 21:57 UTC](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438/25 "2022-02-17T21:57:10Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/enabling-disabling-writing-data-to-a-file-using-a-dashboard-switch-node/55438.md?page=1)
