# Get dashboard 2.0 table row on click

**URL:** <https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [22 October 2024 14:16 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581 "2024-10-22T14:16:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rce](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rce](https://discourse.nodered.org/u/rce)\
**Post date:** [22 October 2024 14:16 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/1 "2024-10-22T14:16:54Z")

</div>

Hi,  
I can get the row number on clicking a row on table 1.0. This way I can insert a row with a form or delete with a button. This doesn't seem possible on table 2.0 as there is no such information on the output payload. Is it something that is planned to be added? This is the only thing preventing me to fully migrate to Dashboard 2.0 at the moment.  
Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 October 2024 15:10 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/2 "2024-10-22T15:10:03Z")

</div>

> [@rce](#):
>
> This doesn't seem possible on table 2.0 as there is no such information on the output payload.

Have you tried adding a debug node set to show full msg?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 October 2024 15:13 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/3 "2024-10-22T15:13:06Z")

</div>

Also, from [the docs](https://dashboard.flowfuse.com/nodes/widgets/ui-table.html):

> #### Interaction: Buttons[​](https://dashboard.flowfuse.com/nodes/widgets/ui-table.html#interaction-buttons)
> 
> The `Button` cell type will render a clickable button in the cell. The label of the button will be the corresponding value in your row for the provided `key`. When the button is clicked, the `ui-table` node will output:
> 
> ```auto
> {
> "payload": <full row object>
> "column": <column key>
> "action": "button_click"
> }
> 
> ```

Meaning, you get the full row & if your row has an ID or index, you will get that in the payload. Is that not enough?

---

<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:** [23 October 2024 14:38 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/4 "2024-10-23T14:38:47Z")

</div>

If you are already familiar with the dashboard-1.0 table, on dashboard-2.0 you can try [https://github.com/omrid01/node-red-dashboard-2-table-tabulator](https://github.com/omrid01/node-red-dashboard-2-table-tabulator), which uses the same table engine (Tabulator) and supports all row & cell events (e.g. `rowClick`, `rowDblClick` etc.), as well as direct in-cell user editing

---

<div class="post-metadata">

**Author:** ![rce](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rce](https://discourse.nodered.org/u/rce)\
**Post date:** [24 October 2024 12:20 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/5 "2024-10-24T12:20:55Z")

</div>

I tried different things and I came to realise that the output payload doesn't give the row if the row is not explicitely written in the input payload.

For example :

Input payload :

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/4893c5208500d05bde001ef663830ead3cd155da.png)

Table :

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/a/6a806c60a5294ffe3e67a1e7783bd6237b28a641.png)

Whether I click on the button or on the row :

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b8eeb8376b829a9c3d36f210d88ede872b640693.png)

It is automatically rendered in the table so imo, the row should be present in the output in any case.

---

<div class="post-metadata">

**Author:** ![rce](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rce](https://discourse.nodered.org/u/rce)\
**Post date:** [24 October 2024 12:22 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/6 "2024-10-24T12:22:14Z")

</div>

I was hoping to stay with the integrated table but maybe this is a good work around. I will try it, thanks.

---

<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:** [23 November 2024 12:23 UTC](https://discourse.nodered.org/t/get-dashboard-2-0-table-row-on-click/92581/7 "2024-11-23T12:23:06Z")

</div>

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