# Table seems to disappear after refreshing page

**URL:** https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680
**Category:** General
**Created:** [9 February 2021 14:05 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680 "2021-02-09T14:05:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![aa123](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@aa123](https://discourse.nodered.org/u/aa123)
#### Post date: [9 February 2021 14:05 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/1 "2021-02-09T14:05:54Z")

</div>

The table node I am using ends up disappearing after I refresh the UI page. The table node isn't able to connect with a node on the right, whereas the topics I see on the internet the table nodes they are able to connect on both sides.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [9 February 2021 16:25 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/2 "2021-02-09T16:25:47Z")

</div>

the ui-table node only has an output if you set the "send data" option  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/977b2f365e5a12de0c75bfeb01475e6874351187.png)  
otherwise there is nothing to send 🙂

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [9 February 2021 17:47 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/3 "2021-02-09T17:47:31Z")

</div>

How do you send data to your table? This determines if the data is refreshed by the dashboard on reload.

---

<div class="post-metadata">

### Author: ![aa123](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@aa123](https://discourse.nodered.org/u/aa123)
#### Post date: [10 February 2021 12:14 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/4 "2021-02-10T12:14:13Z")

</div>

I send it via msg.payload, from a function node.

its goes something very similar to this:

```auto

> Blockquote

var tblmsg={}

tblmsg.payload={
"solution": "dataInput",
"attributes": [{"time": global.get('currenttime')}]
}
node. send(tblmsg);
}

return null;

```

Now this information does send having looked at when manually debugging. Not sure how to make it so that the information stays after refreshing or even after changing a page

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [10 February 2021 17:33 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/5 "2021-02-10T17:33:06Z")

</div>

There are two ways of feeding data into your table.

- The simple / normal way sending a array (rows) of objects (columns) like

```auto
msg.payload = [
  {"col1":1,"col2":"Name"},
  {"col1":2,"col2":"another Name"}
]

```

this fills the table with data. The data is cached by the daschboard and will be replayed for new clients or page refresh.

- or by sending (many) commands: like (this will add another row to your table)

```auto
msg.payload = {
    "command":"addData",
    "arguments":[
        {
            "col1":1,
            "col2":"name"
        },
        true
    ],
    "returnPromise":true
    }
}

```

but in this case the data is not cached and you have to resend it if you refresh your browser or a new client connects as noted in the docs:

> **important notices**  
> Data which is sent to ui-table through commands is **not** cached by ui-table! The flow has to take care to update the table for new clients connection or dashboard tab changes!

This makes ui-table very versatile able to manipulate data on cell level but also a little bit more complicated.

Your example should not work at all (sending a object not following the "command" "arguments" "returnPromise" scheme.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7493e0aa6849f6bd712242de68d0f6b1c1b7445.png)

---

<div class="post-metadata">

### Author: ![novski](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/novski/32/23243_2.png) [@novski](https://discourse.nodered.org/u/novski)
#### Post date: [17 June 2022 12:07 UTC](https://discourse.nodered.org/t/table-seems-to-disappear-after-refreshing-page/40680/6 "2022-06-17T12:07:54Z")

</div>

Can you give me an example how to addRow but still cache it?  
-\> How can I add a row and have persistent data over page reloads and reconnections?
