# Node-ui-table: Inconsistent load behavior, leading to changing no. of columns on refresh

**URL:** <https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749>\
**Category:** General\
**Created:** [3 October 2023 19:25 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749 "2023-10-03T19:25:58Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![moppelg](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@moppelg](https://discourse.nodered.org/u/moppelg)\
**Post date:** [6 November 2023 06:25 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/21 "2023-11-06T06:25:47Z")

</div>

hello Omrid,  
I thought his ID refers to the content of the table. not the row ID.  
But your, and Jerome contribution is good. I consider also, whether the table is a good alternative for a couple of bottoms, which can even change its content text, color etc..

@Jerome:  
The formatter error can be really easily detected using the browser console. I also got it triggered due to a blank row 😛

So does it look like:

```auto
Uncaught (in promise) TypeError: val is undefined
    formatter (index):21
    formatValue (index):2
    _chain (index):2
    _chain (index):2
    chain

```

---

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [6 November 2023 10:38 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/22 "2023-11-06T10:38:08Z")

</div>

Hi,

thanks for sharing. Indeed the ID column name refers to a specific content from the CSV, but as you mention correctly, the name can be confusing related to the regular id from Tabulator, I'll fix it.

Thanks to you both,

Jerome

---

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [10 November 2023 22:52 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/23 "2023-11-10T22:52:37Z")

</div>

Hi there, sorry to wake up that already old topic 😀

I have some troubles with the DB layout pages, and I'm wondering if you see the same. I suspect it comes from either the table template node, or the global template. I tried moving them to another group, but each time I see same behavior : it's very hard to size the nodes to a specific size, and also no way to put them side by side on same row with other nodes.....

Thanks in advance,

Jerome

---

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [11 November 2023 15:48 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/24 "2023-11-11T15:48:00Z")

</div>

Hi again !

I m trying something else with the nice integration of tabulator.

I want to apply filter on the datas in the table, so far so good. My problem is I can't get any useful output from the template node, whch would include the filtered content....

According to tabulator doc ( [https://tabulator.info/docs/5.5/events#filter](https://tabulator.info/docs/5.5/events#filter) ), I used something like this :

```auto
    grid.on("dataFiltered", function(filters, rows){
        if (rows.length > 0){
    $scope.send({payload: rows})};

```

But I don't get any thing and even worse, my table in dashboard does not work anymore, I can't see any content....

When I use something easier in the same function like

` $scope.send({payload: "testfilter"})};`

I get as expected the string on the output, and the table is still fine.

Do you have any suggestion ?

Thanks,

Jerome

---

<div class="post-metadata">

**Author:** ![moppelg](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@moppelg](https://discourse.nodered.org/u/moppelg)\
**Post date:** [11 November 2023 16:05 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/25 "2023-11-11T16:05:32Z")

</div>

Hi Jeroma,  
sorry, this is something, I didn't use before.  
In your case I would try and reverse engineer this example:  
[https://discourse.nodered.org/t/use-tabulator-examples-in-node-red/42217/6](https://discourse.nodered.org/t/use-tabulator-examples-in-node-red/42217/6)  
According the picture in the last post there is also like a filter callback.  
Best regards  
Moppel

---

<div class="post-metadata">

**Author:** ![JeromeVISUALS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeromevisuals/32/40103_2.png) [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Post date:** [12 November 2023 10:04 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/26 "2023-11-12T10:04:06Z")

</div>

THanks, I'll open a new topic for that specific problem, maybe someone will be able to help.

Jerome

---

<div class="post-metadata">

**Author:** ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)\
**Post date:** [13 November 2023 09:12 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/27 "2023-11-13T09:12:39Z")

</div>

> [@JeromeVISUALS](#):
>
> I want to apply filter on the datas in the table, so far so good. My problem is I can't get any useful output from the template node, whch would include the filtered content....

Use table.getData("active");

---

<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:** [27 November 2023 09:12 UTC](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749/28 "2023-11-27T09:12:55Z")

</div>

Closed on 27 November 2023 09:12 UTC

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

[Previous page](https://discourse.nodered.org/t/node-ui-table-inconsistent-load-behavior-leading-to-changing-no-of-columns-on-refresh/81749.md?page=1)
